pinkman 0.9.3 → 0.9.3.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: d88311ae5e6346a8f8f0a37a42b760792be7eb96
4
- data.tar.gz: dc2677236094ac6a3fbf4aaa5e9e48e6f051f1a7
3
+ metadata.gz: 86912b8fc4f73b1b251bffafd61294c77ebfff19
4
+ data.tar.gz: 361639ee4513fb3f607403e074b9443972037cc3
5
5
  SHA512:
6
- metadata.gz: 78876fca7ca135ce0915d7d0366ae6f34c3b84380a88fc99f1d07b785cdd5d1e8275bfcf007049eb754351c246e3a7040dcf042c298d14be1745c519f25d5eda
7
- data.tar.gz: 607a11659a351b14c8e9f913d3f32ec8b2fa1cdce3f44a9c59e120e3156d0484e548d0e85d6064e95ef79d74f5fc79cdbc9bb95739e5a0694e509ef175258fb0
6
+ metadata.gz: 52f40b6d1ee439556bb77025c9b3d506829e2eab6a614cf2f668ef645927bde42cb237fb3acd42ee885c5cec34269bed189073c24ab91661455638dd12ef3669
7
+ data.tar.gz: 0454f89eb0d34fea5234952d64d79b44cbd8b47a3e163839914d370a52bff35842cb3fdb1959800445a0f4eb9035a7a8a3ba2157ef078d8329c20eb913778459
@@ -50,7 +50,7 @@ class window.PinkmanCommon
50
50
 
51
51
  # Desc: sets the attribute as undefined (destroy attribute)
52
52
  unset: (attr,callback) ->
53
- this[attr] = null
53
+ delete this[attr]
54
54
  callback(this) if typeof callback == 'function'
55
55
 
56
56
  # --- Render related --- #
@@ -33,7 +33,7 @@ class window.PinkmanObject extends window.PinkmanCommon
33
33
  a = new Object
34
34
  for k,v of this
35
35
  if PinkmanObject.privateAttributes.indexOf(k) == -1 and typeof v != 'function'
36
- if v.isPink
36
+ if (v? and typeof v == 'object' and v.isPink)
37
37
  a[k] = v.attributes()
38
38
  else
39
39
  a[k] = v
@@ -45,7 +45,7 @@ class window.PinkmanObject extends window.PinkmanCommon
45
45
  a = new Object
46
46
  for k,v of this
47
47
  if PinkmanObject.privateAttributes.indexOf(k) == -1 and typeof v != 'function'
48
- a[k] = if v.isPink then v.json() else v
48
+ a[k] = if (v? and typeof v == 'object' and v.isPink) then v.json() else v
49
49
  return a
50
50
 
51
51
  # Desc: returns a array of attributes keys
@@ -1,3 +1,3 @@
1
1
  module Pinkman
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.3.1"
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.3
4
+ version: 0.9.3.1
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-06-16 00:00:00.000000000 Z
11
+ date: 2017-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler