rails_jskit 5.1.0 → 5.1.1

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: 240307149b562d4e71edf1aefeafcb18dcffd2f9
4
- data.tar.gz: 5db7168702b8598eed85b76d16cd4fe7d57cf781
3
+ metadata.gz: da0636c30a95d2a940b76b8938ba309840ddb326
4
+ data.tar.gz: 36463843795806ee6bff1883bc5dee97f9ecc73d
5
5
  SHA512:
6
- metadata.gz: e2de89050713116fbaad34b612b5193b810944c758a6fb9b14664da23e251a029e5238e5a12709d2c5a005902aa43714be804eccbd215d81949a9400ebf361ff
7
- data.tar.gz: 94f6f5ddf9910a6a8632bb10ae9fb93963cc6807b236258f64b62db454105ab4f04dc457d604d079a57a4cae3d520b0f8e6d6b672658f70fc99de2c91339f68e
6
+ metadata.gz: c2cf158b3c242c811824337b10c6c9274b4592aee4aae67f0475c60a4e93024735d3b631afce702b553e14b01652c9744926818498b619710ad3542b258ba850
7
+ data.tar.gz: 112e61cf694d24f5f7331e192e834dd07fe1efb4d25833af860209ac73ba916125abfa31299b46921574fbe9bfce9c0c70d8f6a287775534ac3c0d2b68b6b9d0
@@ -333,13 +333,16 @@ JSkit.Controller = (function() {
333
333
  var eventName = eventNameForAction(controller, action.name);
334
334
  controller.dispatcher.before(eventName, function() {
335
335
  return cacheElements(controller, action.name);
336
- })
336
+ });
337
337
  });
338
338
  }
339
339
 
340
340
  function registerControllerElementEvents(controller) {
341
341
  each(controller.__actions__, function(action) {
342
- registerActionEvents(controller, action.name);
342
+ var eventName = eventNameForAction(controller, action.name);
343
+ controller.dispatcher.before(eventName, function() {
344
+ return registerActionEvents(controller, action.name);
345
+ });
343
346
  });
344
347
  }
345
348
 
@@ -369,11 +372,11 @@ JSkit.Controller = (function() {
369
372
  normalizeActions(controller);
370
373
  registerActions(controller);
371
374
 
372
- normalizeControllerElements(controller);
373
375
  normalizeControllerEvents(controller);
376
+ normalizeControllerElements(controller);
374
377
 
375
- registerCacheElementsForActions(controller);
376
378
  registerControllerElementEvents(controller);
379
+ registerCacheElementsForActions(controller);
377
380
 
378
381
  decorateCacheElements(controller);
379
382
  decorateRegisterEvents(controller);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_jskit
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dayton Nolan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-24 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails