twine-rails 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b153b73f51569db921642e0bcb0e2ba27bc0054
4
- data.tar.gz: a6ee47343dd4f96334bc4d31a31a2fb1424ed58c
3
+ metadata.gz: a6d017ab011952267836b83fb7ce92d6f899b956
4
+ data.tar.gz: efb0d4ec2831fb6e29191c78739189a630826107
5
5
  SHA512:
6
- metadata.gz: 2a803dd841f1e521838ea9877a3171f4cdc04cfe0b09168e8f75a58be123f715e59a5e0ce5024116989e97c3f0c47ed21f1705584c377075d995d3a2b4178382
7
- data.tar.gz: 869d2e712bf92af2c19fe2c011eaa88f9ed37f171a4b00b4e4823d44399b099b261e9f7a238ce7bd193c67b99a7209aa66584d93df2b01beeb042181c2f2deee
6
+ metadata.gz: 9b73dac0813036283699cde20ed529bc70d2cd645594acbce468522cca55031de164fa7e6cfea0bf311dfd43940aeb277a2a37066780f6784b1383d8978b903c
7
+ data.tar.gz: 0210493867dada6123415e4e00ad08b56156234e18bd9156e439f2cad8ebbc9f2e66672138e67f01bfd09636e1a954104951e0017e07e6e01a779064e007c9fe
@@ -45,7 +45,7 @@ bind = (context, node, forceSaveContext) ->
45
45
  if node.bindingId
46
46
  Twine.unbind(node)
47
47
 
48
- for type, binding of Twine.bindingTypes when definition = node.getAttribute(type)
48
+ for type, binding of Twine.bindingTypes when definition = (node.getAttribute(type) || node.getAttribute("data-#{type}"))
49
49
  element = {bindings: []} unless element # Defer allocation to prevent GC pressure
50
50
  fn = binding(node, context, definition, element)
51
51
  element.bindings.push(fn) if fn
@@ -1,3 +1,3 @@
1
1
  module TwineRails
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twine-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Li
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-08-05 00:00:00.000000000 Z
13
+ date: 2015-10-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: coffee-rails
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.2.3
89
+ rubygems_version: 2.2.2
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Minimalistic two-way bindings