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 CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.3.2 (Helen of Bikini, 25th July 1946)
2
+ * Fix searching elements inside several blocks (by Andrei Miroshnik).
3
+
1
4
  == 0.3.1 (Gilda, 1st July 1946)
2
5
  * Fix in multiple block copies on one page (by Andrei Miroshnik).
3
6
 
@@ -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 (subselector) {
88
- return $(subselector, block);
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.1
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-20 00:00:00.000000000 Z
12
+ date: 2013-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sprockets