polymer-rails-forms 0.3.01 → 0.3.02

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b75d3c9c3f3557fccb6938dc90e4f72d16c002fc
4
- data.tar.gz: fba524123deb455a9ac60055f40d6748aa765386
3
+ metadata.gz: 010d2a3981c82bf7415709aaa3b5fa8831bf4171
4
+ data.tar.gz: 3de8dc0a97cffa4553e8ecca66eae67a63958d9b
5
5
  SHA512:
6
- metadata.gz: 73251ebfb263ad43a526105e1e04fe5e1d9b25e487028e83c97823bdef785e879feb65d0860b0c6e6149f10f23b002b1565fac0d5e74375099c9a956018421bc
7
- data.tar.gz: 44289cfe4ca79e7193d0fcb7e8d4980bb5f910f5197f7814fb5174480e13dcf16d19839c67c2a238de60b8cfe66b79eb1f4347c5bb70d84d54488adf724ea53d
6
+ metadata.gz: 4b44eddf9e754adec881fe87597542302291deb3d563ef183fda071416a63a4b287bc45daf3511c5dee1976b295196ca30dd6eae2fa4dd423da1f499d23a6fda
7
+ data.tar.gz: 7bfbcd82788710f3bbd427ccc02e30878dd0ac1fc14841b70fe990ccc3a5e7c61bdbab2975fc7b020f86d8be5f1511cce1ca1a94ee0224b1785131a11e142824
@@ -111,8 +111,8 @@
111
111
  return this.data
112
112
  },
113
113
 
114
- listItemClassName: function(obj){
115
- return this.key + "-" + this.getIndex(obj);
114
+ listItemClassName: function(index){
115
+ return this.key + "-" + index;
116
116
  },
117
117
 
118
118
  /* Effects */
@@ -179,7 +179,7 @@
179
179
  /* Creating Element */
180
180
  //TODO: Wow, this seems like it could be way simpler.
181
181
  createListItem: function(obj, structure, data){
182
- var className = this.listItemClassName(obj),
182
+ var className = this.listItemClassName(data.indexOf(obj)),
183
183
  container = this.createWithAttributes("div", {'class': "list-item-display"});
184
184
 
185
185
  if (structure.display_fields){
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polymer-rails-forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.01
4
+ version: 0.3.02
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Weber