garlicjs-rails 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.1.1 == Garlic.js 1.1.1
34
+ garlicjs-rails 1.1.2 == Garlic.js 1.1.2
35
35
 
36
36
  ## Contributing
37
37
 
@@ -1,5 +1,5 @@
1
1
  module Garlicjs
2
2
  module Rails
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
@@ -99,9 +99,7 @@
99
99
  }
100
100
 
101
101
  , getOptions: function ( options ) {
102
- options = $.extend( {}, $.fn[this.type].defaults, options, this.$element.data() );
103
-
104
- return options;
102
+ return $.extend( {}, $.fn[this.type].defaults, options, this.$element.data() );
105
103
  }
106
104
 
107
105
  /* temporary store data / state in localStorage */
@@ -356,6 +354,11 @@
356
354
  return;
357
355
  }
358
356
 
357
+ // don't bind a password type field
358
+ if ( 'password' === $( self ).attr( 'type' ) ) {
359
+ return;
360
+ }
361
+
359
362
  // if data never binded, bind it right now!
360
363
  if ( !data ) {
361
364
  $this.data( 'garlic', ( data = new Garlic( self, storage, fieldOptions ) ) );
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.1.1
4
+ version: 1.1.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: 2012-12-25 00:00:00.000000000 Z
12
+ date: 2013-01-02 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: 4582252746168385461
61
+ hash: -2766940448262897459
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: 4582252746168385461
70
+ hash: -2766940448262897459
71
71
  requirements: []
72
72
  rubyforge_project:
73
73
  rubygems_version: 1.8.24