garlicjs-rails 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -31,7 +31,7 @@ And add the following line to your application layout (must be before garlicjs i
31
31
 
32
32
  ## Versioning
33
33
 
34
- garlicjs-rails 1.2.1 == Garlic.js 1.2.1
34
+ garlicjs-rails 1.2.2 == Garlic.js 1.2.2
35
35
 
36
36
  ## Contributing
37
37
 
@@ -1,5 +1,5 @@
1
1
  module Garlicjs
2
2
  module Rails
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
5
5
  end
@@ -121,7 +121,7 @@
121
121
  }
122
122
 
123
123
  , getVal: function () {
124
- return !this.$element.is( 'input[type=checkbox]' ) ? this.$element.val() : ( this.$element.attr( 'checked' ) ? 'checked' : 'unchecked' );
124
+ return !this.$element.is( 'input[type=checkbox]' ) ? this.$element.val() : ( this.$element.prop( 'checked' ) ? 'checked' : 'unchecked' );
125
125
  }
126
126
 
127
127
  /* retrieve localStorage data / state and update elem accordingly */
@@ -252,7 +252,7 @@
252
252
  this.remove();
253
253
 
254
254
  if ( this.$element.is( 'input[type=radio], input[type=checkbox]' ) ) {
255
- $( this.$element ).attr( 'checked', false );
255
+ $( this.$element ).prop( 'checked', false );
256
256
  return;
257
257
  }
258
258
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garlicjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
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-04-09 00:00:00.000000000 Z
12
+ date: 2013-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  segments:
60
60
  - 0
61
- hash: -3826722763077447348
61
+ hash: 13812962034695270
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  segments:
69
69
  - 0
70
- hash: -3826722763077447348
70
+ hash: 13812962034695270
71
71
  requirements: []
72
72
  rubyforge_project:
73
73
  rubygems_version: 1.8.24