pinkman 1.4.1 → 1.4.2

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
  SHA256:
3
- metadata.gz: 4f7ed08ad60d847ca5651c844063a0fa97f59900cb845281259cb98cf1dba049
4
- data.tar.gz: 4dd11a6547f2780ec8a301f4dd8107db0d2a5000799327dace62e267b7b33f74
3
+ metadata.gz: 83fbbd3c2199953771dcc5d4a2b3d576a95a826335d4e4c6cb1a91f285e38be0
4
+ data.tar.gz: 7dd126c2f71f854815ccd087e33a73c8b0cd5cec48ac633c100b6177e4fd5364
5
5
  SHA512:
6
- metadata.gz: b6035433e7bdf4867aecfda52b92040aec45781dc0f9a29155f764a9e835e0f1288e956e861f3236b883fc28786f281cfb49b2fb1bfb62d3cb82ef39d52defda
7
- data.tar.gz: 4b5d300c430ce10c5868581d6c1498f5e378afc46a410fe7985ff3b49088ed1a173d68b073b74f5cebc319aebb2b2c4968f916a54b088ab37cd548ccbdeadd29
6
+ metadata.gz: 21f20df4281baab2707b0e10a87ad901534bac7bd5328cb5ab5965cd2fca8f39a493e9d4ead8ab6b1b9f2d7f866e4cd8c2b2f795352b80046f4ee6d1a353bcc7
7
+ data.tar.gz: 02ca3adb0d09c8bebc9b88db3e2d37e432e383bbca7b9057831344b80247bac297e9e6f0e79aca07d21017949d7f2bc9b8817f1d223e31d4f2b206d0e34dad17
@@ -79,7 +79,7 @@ class window.PinkmanController extends window.PinkmanObject
79
79
  eventName: eventName
80
80
  callback: callback
81
81
  controller: this
82
- preventDefault: preventDefault || true
82
+ preventDefault: if preventDefault? then preventDefault else true
83
83
  selector: "##{this.id} [data-action='#{name}']"
84
84
 
85
85
 
@@ -409,6 +409,7 @@ class window.PinkmanAction extends window.PinkmanObject
409
409
  a.set 'eventName', options.eventName
410
410
 
411
411
  # default value for preventDefault: yes
412
+ # console.log options.preventDefault
412
413
  a.set 'preventDefault', options.preventDefault
413
414
 
414
415
  # a.log 'eventName'
@@ -462,7 +463,7 @@ class window.PinkmanAction extends window.PinkmanObject
462
463
  # console.log "#{action.id}: called - #{action.name}"
463
464
 
464
465
  ev.preventDefault() if (eventName != 'keypress' and eventName != 'mousedown') and action.preventDefault
465
- # # debug mode
466
+ # debug mode
466
467
  # if (eventName != 'keypress' and eventName != 'mousedown') and action.preventDefault
467
468
  # console.log 'chamou prevent default'
468
469
  # ev.preventDefault()
@@ -1,3 +1,3 @@
1
1
  module Pinkman
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
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: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agilso Oliveira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-13 00:00:00.000000000 Z
11
+ date: 2019-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler