js-namespace-rails 1.0.2 → 1.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11925db934f9f28cd634224f0580634eb37d8785
|
4
|
+
data.tar.gz: 790e3fe273ad9fd2720fa31b564520ec75de0aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7355c772d2e9f4ab1cb57395231aac6eb2efe65e90ee9cd5e9bd986143abc1071798784344c18b3ca619738d320140fdfedce25dea5224605fab3a650bdd302
|
7
|
+
data.tar.gz: bcf9d3c7e49341b2a816e68d2ed2acd7faaf9e6f09badf536be7d1855a002eccbfa18e64ad5d9b147acc0ad2140de9b4321a6d2a8265f6010cb288a79d8aa685
|
@@ -9,6 +9,8 @@
|
|
9
9
|
|
10
10
|
self.INIT = 'init';
|
11
11
|
|
12
|
+
self.RESERVE = ['new'];
|
13
|
+
|
12
14
|
self.controllerList = {};
|
13
15
|
|
14
16
|
self.on = function(controllerName, obj){
|
@@ -37,6 +39,8 @@
|
|
37
39
|
|
38
40
|
if(activeController[actionName] !== undefined && typeof activeController[actionName] === 'function'){
|
39
41
|
activeController[actionName].call(activeController, params);
|
42
|
+
} else if ( self.RESERVE.indexOf(actionName) >= 0 && activeController['_' + actionName] !== undefined) {
|
43
|
+
activeController['_' + actionName].call(activeController, params);
|
40
44
|
}
|
41
45
|
}
|
42
46
|
};
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: js-namespace-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Hou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|