pinkman 0.9.4.8 → 0.9.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/pinkman_base/collection.coffee +6 -2
- data/lib/pinkman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 775f024c32a5518a396f6dd1dafe3dae39ab098e
|
4
|
+
data.tar.gz: 92202f0cc00e5236651d7fb3244ff93060b87c42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/pinkman/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|