pinkman 0.9.4.8 → 0.9.4.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcf3f405fa90797f91db8eb46e1cf4a0325f00ac
4
- data.tar.gz: 99e1c63975cd94b02b27075eccdf5cd0a35eea20
3
+ metadata.gz: 775f024c32a5518a396f6dd1dafe3dae39ab098e
4
+ data.tar.gz: 92202f0cc00e5236651d7fb3244ff93060b87c42
5
5
  SHA512:
6
- metadata.gz: 4b5eede851252d82bedd490a87c948fe6db171a63e6701eb390de4de50c39abc540e883591931748abb0bd23573f6544d774b9664e218f912dcd74eaf88a6b8d
7
- data.tar.gz: 3a4075b087e24760f53ca0a651e4a2fcee587aa0f4c379c024976492ff01f4cb4ca2df6cf9319b391859e5ffa19d243a7de7f1c6d9678b32bf15069afb2f85e3
6
+ metadata.gz: 5d82d6c5ffa6ecdbc4dc34fb4737e7e78b06b01d331edbaaad4be0086e2d8cfbfb2d7327ed657c5aefb5df14a46dc8d453d1b7fa3de8b46c71972e4a1085ccd1
7
+ data.tar.gz: 63d0369b3f639a98e0381d9e0c58474a32b4c907778fec1ac03b8bc219ce18a55c59df2a81134734229c126dadd0ee73b55a2e5d69158f2676eedab4c7c091b4
@@ -136,7 +136,11 @@ class window.PinkmanCollection extends window.PinkmanCommon
136
136
 
137
137
  # Desc: remove a object from the collection
138
138
  remove: (object) ->
139
- if object?
139
+ if typeof object == 'object' and object.id? and (a = @find(object.id))?
140
+ i = @collection.indexOf a
141
+ @collection.splice(i,1)
142
+ return a
143
+ else
140
144
  i = @collection.indexOf object
141
145
  @collection.splice(i,1)
142
146
  return object
@@ -155,7 +159,7 @@ class window.PinkmanCollection extends window.PinkmanCommon
155
159
  return(true)
156
160
 
157
161
  # Desc: return true if object is in this collection and false if anything else.
158
- # Also accepts an array as argument. Return true if
162
+ # Also accepts an array as argument. Return true if every element is in the collection
159
163
  include: (args) ->
160
164
  if args? and Pinkman.isArray(args)
161
165
  value = true
@@ -1,3 +1,3 @@
1
1
  module Pinkman
2
- VERSION = "0.9.4.8"
2
+ VERSION = "0.9.4.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinkman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4.8
4
+ version: 0.9.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agilso Oliveira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-05 00:00:00.000000000 Z
11
+ date: 2017-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler