Permalink
Browse files

update to Garlic.js 1.2.2

  • Loading branch information...
1 parent 1d20418 commit 805fd5122565b4ae75612dcb55947cef60c0086d @nashby committed Jul 16, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +1 −1 lib/garlicjs-rails/version.rb
  3. +2 −2 vendor/assets/javascripts/garlic.js
View
@@ -31,7 +31,7 @@ And add the following line to your application layout (must be before garlicjs i
## Versioning
-garlicjs-rails 1.2.1 == Garlic.js 1.2.1
+garlicjs-rails 1.2.2 == Garlic.js 1.2.2
## Contributing
@@ -1,5 +1,5 @@
module Garlicjs
module Rails
- VERSION = "1.2.1"
+ VERSION = "1.2.2"
end
end
@@ -121,7 +121,7 @@
}
, getVal: function () {
- return !this.$element.is( 'input[type=checkbox]' ) ? this.$element.val() : ( this.$element.attr( 'checked' ) ? 'checked' : 'unchecked' );
+ return !this.$element.is( 'input[type=checkbox]' ) ? this.$element.val() : ( this.$element.prop( 'checked' ) ? 'checked' : 'unchecked' );
}
/* retrieve localStorage data / state and update elem accordingly */
@@ -252,7 +252,7 @@
this.remove();
if ( this.$element.is( 'input[type=radio], input[type=checkbox]' ) ) {
- $( this.$element ).attr( 'checked', false );
+ $( this.$element ).prop( 'checked', false );
return;
}

0 comments on commit 805fd51

Please sign in to comment.