loadjs 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/loadjs/version.rb +1 -1
- data/vendor/assets/javascripts/loadjs.js +5 -5
- metadata +4 -4
data/lib/loadjs/version.rb
CHANGED
@@ -9,16 +9,16 @@ function load(options, fn) {
|
|
9
9
|
if (splitOption[0] != currentController || splitOption[1] != currentAction) {
|
10
10
|
return;
|
11
11
|
}
|
12
|
-
fn(
|
12
|
+
fn(currentController, currentAction);
|
13
13
|
} else if (typeof options.controllers !== "undefined") {
|
14
14
|
for (var controller in options.controllers) {
|
15
15
|
var actions = options.controllers[controller];
|
16
16
|
if (controller == currentController && actions.length == 0) {
|
17
|
-
fn(
|
17
|
+
fn(currentController, currentAction);
|
18
18
|
} else {
|
19
19
|
for (var i = 0, length = actions.length; i < length; ++i) {
|
20
20
|
if (actions[i] == currentAction) {
|
21
|
-
fn(
|
21
|
+
fn(currentController, currentAction);
|
22
22
|
break;
|
23
23
|
}
|
24
24
|
}
|
@@ -29,8 +29,8 @@ function load(options, fn) {
|
|
29
29
|
return;
|
30
30
|
}
|
31
31
|
if (typeof options.action === "undefined" || options.action == currentAction) {
|
32
|
-
fn(
|
32
|
+
fn(currentController, currentAction);
|
33
33
|
}
|
34
34
|
}
|
35
35
|
});
|
36
|
-
}
|
36
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loadjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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-
|
12
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -101,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
segments:
|
103
103
|
- 0
|
104
|
-
hash: -
|
104
|
+
hash: -3980621290435934447
|
105
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
106
|
none: false
|
107
107
|
requirements:
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
segments:
|
112
112
|
- 0
|
113
|
-
hash: -
|
113
|
+
hash: -3980621290435934447
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
116
|
rubygems_version: 1.8.23
|