evil-blocks-rails 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +3 -0
- data/lib/assets/javascripts/evil-blocks.js +5 -3
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -84,9 +84,11 @@
|
|
84
84
|
for ( var i = 0; i < blocks.length; i++ ) {
|
85
85
|
var block = $(blocks[i]);
|
86
86
|
|
87
|
-
var b = function (
|
88
|
-
return
|
89
|
-
|
87
|
+
var b = (function (block) {
|
88
|
+
return function (subselector) {
|
89
|
+
return $(subselector, block);
|
90
|
+
};
|
91
|
+
})(block);
|
90
92
|
var actives = { };
|
91
93
|
block.find('[data-role]').each(function (_, el) {
|
92
94
|
var roles = el.attributes['data-role'].value.split(' ');
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evil-blocks-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
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-06-
|
12
|
+
date: 2013-06-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|