material_raingular 0.1.6.0 → 0.1.6.1

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: 3ba3b0b2174c0f6391c8958f700a48819b2d2051
4
- data.tar.gz: 035661cd0bbc70a77cc3fff718ab3963bed2c293
3
+ metadata.gz: bd3b6db6477268896554435718fc4f2bbc7cc071
4
+ data.tar.gz: e105ec6dd91888908f94ba38060de948bf0df69b
5
5
  SHA512:
6
- metadata.gz: 23fb19b483660fed5e2468871a1f8b378ec50ba11829fe868d7095c656ce2c079de62050ebbf7fd05c0217d9a1bdaf104224eaf6373bcec5e7fd4eac0fa3234a
7
- data.tar.gz: 913f18b883cb105998726cf3ebc6e2ccb77b1021b7b1525842d90923cfa82075f73b49bf3c22fcee2b222664e7486896e047e96d12372becabb20983c5044e96
6
+ metadata.gz: d76c6bd070aea8883a9ab6af9cbf9861b4a7151e34becdb4c3c5eb08634d1ec98405e4742c2e017f1bc4b8aeace2d6dac52e0dd3ca88a5909de6916417d8d892
7
+ data.tar.gz: 8a1edf30645e6cd6ac993f0f6614e7d54b6249a820a9359b1cd4d77307654bdcdb34243bfc07a9ac7cb70627c3ac20c83262a3bb4f3bd52dae0bb49c1330ab77
@@ -156,7 +156,7 @@ class EventFunctions
156
156
  obj[@functions.viewValue] = search.val()
157
157
  collection = @functions.collection(@scope)
158
158
  if @options.allowNew
159
- collection.push(obj) unless collection.pluck(@functions.viewValue).includes(obj[@functions.viewValue])
159
+ collection.push(obj) unless (if @functions.isPrimative then collection else collection.pluck(@functions.viewValue)).includes(obj[@functions.viewValue] || obj)
160
160
  val = @filteredList(!@options.allowNew,false,@options.allowNew,true)[0]
161
161
  @changeFn(@scope)(val) if @changeFn
162
162
  @updateValue @functions.modelValueFn(val)
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.1.6.0"
2
+ VERSION = "0.1.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.0
4
+ version: 0.1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-02 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler