beyond-rails 0.0.253 → 0.0.254

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
  SHA256:
3
- metadata.gz: 03b03c2d04ee16bcfa672bcba9fb50cef0984d90b7269c50eae9cf12a7da092e
4
- data.tar.gz: f63820f652d27f0a426ada80703966c6891f7f94e3551f1d393fe5527310d1fc
3
+ metadata.gz: 0d0d6f0e05e67226b87ac93c97923647d70c9cc574608c8729d2c70bd1d09290
4
+ data.tar.gz: 83974fc639827973d26bcfa8495c5109e8986e3d9b6c44ff720a7ffe37336da6
5
5
  SHA512:
6
- metadata.gz: 4f48f3c0d1d3ca9e3d4377cab79b72cb88260fa8b41e78d470c35b94a65c7f5c39bc84b839b809fc2023e1f0d6890167643cc3f16cc0740225548616144e4cca
7
- data.tar.gz: 174f888a6d5fdc5b9b97b95a0afe55c754373eea237988fb43328122fce91fe207a2c93d196ee308bbf7c3597e27211c2a6cc727c8299363a0cc69c8844a87a1
6
+ metadata.gz: b816d40ecbbf71d27698d749bce5c10438f03c27a6fb18a1178ded50b863bff5148c0a60aa032965bfb2b84f8e90a362724ab0c1d8fe169a25fad2b1939c53f1
7
+ data.tar.gz: ac85421f8c566066a552bb2c16ca134ec271aee0fa8911557c13745c28173870527d035b12538c957b0cc789d13ba6e893ad44e462789e818d7f35d6b44ebf4c
@@ -99,9 +99,9 @@ export default class TagInput {
99
99
  }
100
100
  }
101
101
 
102
- getTag(inputValue, res) {
102
+ getTag(inputValue, options = {}) {
103
103
 
104
- const classname = res.classname ? ` ${res.classname}` : ''
104
+ const classname = options.classname ? ` ${options.classname}` : ''
105
105
  const tag = document.createElement('div')
106
106
 
107
107
  tag.className = 'tag' + classname
@@ -122,7 +122,7 @@ export default class TagInput {
122
122
  tag.appendChild(btn)
123
123
  this.id += 1
124
124
 
125
- return { id: this.id, elem: tag, remove: handleBtnClick, res }
125
+ return { id: this.id, elem: tag, remove: handleBtnClick, options }
126
126
  }
127
127
 
128
128
  setTags(rows) {
@@ -134,8 +134,8 @@ export default class TagInput {
134
134
  this.tags = tags
135
135
  }
136
136
 
137
- addTag(inputValue, res) {
138
- const tag = this.getTag(inputValue, res)
137
+ addTag(inputValue, options = {}) {
138
+ const tag = this.getTag(inputValue, options)
139
139
  this.tags.push(tag)
140
140
  this.dom.insertBefore(tag.elem, this.inputDiv)
141
141
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.253
4
+ version: 0.0.254
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng