loadjs 0.0.1 → 0.0.2

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.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,11 @@
1
+ function load(options, fn) {
2
+ $(function(){
3
+ if (options.controller != $("body").data("controller")) {
4
+ return;
5
+ }
6
+ if (typeof options.action === "undefined" ||
7
+ options.action == $("body").data("action")) {
8
+ fn();
9
+ }
10
+ });
11
+ }
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.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -53,6 +53,7 @@ files:
53
53
  - lib/loadjs/version.rb
54
54
  - lib/loadjs.rb
55
55
  - lib/tasks/loadjs_tasks.rake
56
+ - vendor/assets/javascripts/loadjs.js
56
57
  - MIT-LICENSE
57
58
  - Rakefile
58
59
  - README.rdoc
@@ -100,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
101
  version: '0'
101
102
  segments:
102
103
  - 0
103
- hash: -2528514012569004501
104
+ hash: -3814256120695105595
104
105
  required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  none: false
106
107
  requirements:
@@ -109,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
110
  version: '0'
110
111
  segments:
111
112
  - 0
112
- hash: -2528514012569004501
113
+ hash: -3814256120695105595
113
114
  requirements: []
114
115
  rubyforge_project:
115
116
  rubygems_version: 1.8.23