romo 0.19.9 → 0.19.10

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
- data.tar.gz: 109dec7707c080e71bfd48ae975ebc9b4e5d533c
4
- metadata.gz: 15228cba845f2429670da60e0e88029620049bd5
3
+ metadata.gz: 83d0ec2bedb12e733a86fa6d0a254dc1c07e658a
4
+ data.tar.gz: c2fab8071132f725db5672a8675beea8d1bd54b2
5
5
  SHA512:
6
- data.tar.gz: 1e4763f9735a9cec9d98180fe77f5bb630c0ead348b7fc83a5ee166dc9d679f56bc9f133f0b61777d15781a4385c74b5e627987b5f29ec325601703b1c8522a6
7
- metadata.gz: 8aec6f050a6897c483d725f4f783c0b87b09372030aa283c53b44171a9ecb3e9c0b3e6e7e54c1963fe5e5faaba52c67d5677ffa137578c3e680103b7952cb6d0
6
+ metadata.gz: 779da3ae030a76a15a52bef091ad4c1bcfe6a0527c8e6e5ca321f8b0e8449a496882961a4d7c284386dc64722b255dd4905eec9e9456370eb92782dea7af7386
7
+ data.tar.gz: 528c8ddf489a8bcb07d0e0a2e776bbcab94d49cc938fd5231239b7d03c317c21fd75a268104692dd13408e429b9e7654645cd9aa07524b275e1db406a31580ea
@@ -41,21 +41,31 @@ RomoAjax.prototype.doBindElem = function() {
41
41
  if (this.invokeOn !== undefined) {
42
42
  this.elem.on(this.invokeOn, $.proxy(this.onInvoke, this));
43
43
  }
44
- this.elem.on('romoAjax:triggerInvoke', $.proxy(this.onInvoke, this));
44
+ this.elem.on('romoAjax:triggerInvoke', $.proxy(this.onTriggerInvoke, this));
45
45
  }
46
46
 
47
47
  RomoAjax.prototype.doUnbindElem = function() {
48
48
  if (this.invokeOn !== undefined) {
49
49
  this.elem.off(this.invokeOn, $.proxy(this.onInvoke, this));
50
50
  }
51
- this.elem.off('romoAjax:triggerInvoke', $.proxy(this.onInvoke, this));
51
+ this.elem.off('romoAjax:triggerInvoke', $.proxy(this.onTriggerInvoke, this));
52
52
  }
53
53
 
54
- RomoAjax.prototype.onInvoke = function(e, data) {
54
+ RomoAjax.prototype.onInvoke = function(e) {
55
55
  if (e !== undefined) {
56
56
  e.preventDefault();
57
57
  }
58
58
 
59
+ if (this.elem.hasClass('disabled') === false) {
60
+ this.doInvoke();
61
+ }
62
+ }
63
+
64
+ RomoAjax.prototype.onTriggerInvoke = function(e, data) {
65
+ if (e !== undefined) {
66
+ e.stopPropagation();
67
+ }
68
+
59
69
  if (this.elem.hasClass('disabled') === false) {
60
70
  this.doInvoke(data);
61
71
  }
@@ -277,15 +277,18 @@ RomoPicker.prototype._bindAjax = function() {
277
277
 
278
278
  this.elem.on('romoAjax:callStart', $.proxy(function(e, data, romoAjax) {
279
279
  this.romoOptionListDropdown.elem.trigger('romoOptionListDropdown:triggerFilterIndicatorStart', []);
280
+ return false;
280
281
  }, this));
281
282
  this.elem.on('romoAjax:callSuccess', $.proxy(function(e, data, romoAjax) {
282
283
  this.filteredOptionItems = data;
283
284
  this._setListItems(this.filteredOptionItems.concat(this._buildCustomOptionItems()));
284
285
  this.romoOptionListDropdown.elem.trigger('romoOptionListDropdown:triggerFilterIndicatorStop', []);
286
+ return false;
285
287
  }, this));
286
288
  this.elem.on('romoAjax:callError', $.proxy(function(e, xhr, romoAjax) {
287
289
  this._setListItems(this.defaultOptionItems.concat(this._buildCustomOptionItems()));
288
290
  this.romoOptionListDropdown.elem.trigger('romoOptionListDropdown:triggerFilterIndicatorStop', []);
291
+ return false;
289
292
  }, this));
290
293
 
291
294
  this.elem.romoAjax();
data/lib/romo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.19.9"
2
+ VERSION = "0.19.10"
3
3
  end
@@ -8,6 +8,12 @@ module Romo::Dassets
8
8
 
9
9
  class UnitTests < Assert::Context
10
10
  desc "Romo::Dassets"
11
+ setup do
12
+ Romo::Dassets.reset!
13
+ end
14
+ teardown do
15
+ Romo::Dassets.reset!
16
+ end
11
17
  subject{ Romo::Dassets }
12
18
 
13
19
  should have_imeths :configure!, :reset!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.9
4
+ version: 0.19.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2017-09-28 00:00:00 Z
13
+ date: 2017-10-05 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: assert