neo-rails 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@
6
6
 
7
7
  var url_param = function(name){
8
8
  var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
9
- return results[1] || null;
9
+ return results !== null && results[1];
10
10
  };
11
11
 
12
12
  $(function(){
@@ -17,7 +17,7 @@
17
17
  });
18
18
 
19
19
  var active_scenario = url_param("scenario");
20
- if(active_scenario !== null){
20
+ if (active_scenario){
21
21
  ui.addClass(SEL.open);
22
22
  };
23
23
  });
@@ -1,5 +1,5 @@
1
1
  module Neo
2
2
  module Rails
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: