elementaljs-rails 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Elementaljs
2
2
  module Rails
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -30,11 +30,10 @@
30
30
 
31
31
  ns.load = function(container) {
32
32
  var $selector;
33
- if (container === document) {
34
- $selector = $('[data-behavior]');
35
- }
36
- else {
37
- $selector = $(container).find("*").andSelf().filter("[data-behavior]");
33
+ $selector = $('[data-behavior]', container);
34
+
35
+ if ($(container).data('behavior')) {
36
+ $selector = $selector.add(container);
38
37
  }
39
38
 
40
39
  $selector.each(function(index, element) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elementaljs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-20 00:00:00.000000000 Z
12
+ date: 2013-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  segments:
76
76
  - 0
77
- hash: -244163104483800812
77
+ hash: -3807646498383333032
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  none: false
80
80
  requirements:
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  segments:
85
85
  - 0
86
- hash: -244163104483800812
86
+ hash: -3807646498383333032
87
87
  requirements: []
88
88
  rubyforge_project:
89
89
  rubygems_version: 1.8.25