loadjs 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Loadjs
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -13,7 +13,10 @@ function load(options, fn) {
13
13
  } else if (typeof options.controllers !== "undefined") {
14
14
  for (var controller in options.controllers) {
15
15
  var actions = options.controllers[controller];
16
- if (controller == currentController && actions.length == 0) {
16
+ if (controller != currentController) {
17
+ return;
18
+ }
19
+ if (actions.length == 0) {
17
20
  fn(currentController, currentAction);
18
21
  } else {
19
22
  for (var i = 0, length = actions.length; i < length; ++i) {
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
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -101,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  segments:
103
103
  - 0
104
- hash: -3980621290435934447
104
+ hash: 2328848763723569876
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: -3980621290435934447
113
+ hash: 2328848763723569876
114
114
  requirements: []
115
115
  rubyforge_project:
116
116
  rubygems_version: 1.8.23