romo 0.20.4 → 0.20.5

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
- SHA512:
3
- metadata.gz: fc92a94417b75d8dcd13b5f9e48fd5f7d00789e18bb9969a1b21ab55f85e572c70a17ac3a80e62c31e0abca1989e4be6d48e2746a8ea0d44719c5cbf08e13dd3
4
- data.tar.gz: 16c16fbf9a5fc4bf11c0b71cd8944b131a36e5c19e4ffcef3a03e6274564fd4a73ce5473eaa24fb9dd9421ed652bad4490f123237ba9282c38db5b65965b43ec
5
2
  SHA1:
6
- metadata.gz: 753cd71f80760176c3b62b6ae4920c3a21067017
7
- data.tar.gz: 300d46042e20b7b35e1ba5706a32b86318bdf01e
3
+ metadata.gz: 2318193f3f913e5bfb4c26f94770c022a443eaaf
4
+ data.tar.gz: 3f947121a5eb65b6085a1e53d88f1024f2c059bd
5
+ SHA512:
6
+ metadata.gz: 9594b65d1d1103933b772b6b6b27d5194a01e2b39aa4aae1831fe5aac713fcb412f871e54a4bd144cd86541b297167cb77891ebc12c9eb471ca628b0c061e8f5
7
+ data.tar.gz: 7440581baa845c76ea619679bc2ba9e3f20af35533752f58a54d3f5bf895d438d66fdc409a5278d0da8d560bcc5a266f15bb5cf585057b026999b35164427e08
@@ -44,14 +44,16 @@ RomoSpinner.prototype.doStart = function(customBasisSize) {
44
44
  this.elemHtml = this.elem.innerHTML;
45
45
  this.elemStyle = Romo.attr(this.elem, 'style');
46
46
 
47
- Romo.setStyle(this.elem, 'position', 'relative');
48
- Romo.setStyle(this.elem, 'width', Romo.width(this.elem)+'px');
49
- Romo.setStyle(this.elem, 'height', Romo.height(this.elem)+'px');
47
+ Romo.pushFn(Romo.proxy(function() {
48
+ Romo.setStyle(this.elem, 'position', 'relative');
49
+ Romo.setStyle(this.elem, 'width', Romo.width(this.elem)+'px');
50
+ Romo.setStyle(this.elem, 'height', Romo.height(this.elem)+'px');
50
51
 
51
- Romo.updateHtml(this.elem, '');
52
- this.spinner.spin(this.elem);
52
+ Romo.updateHtml(this.elem, '');
53
+ this.spinner.spin(this.elem);
53
54
 
54
- Romo.trigger(this.elem, 'romoSpinner:start', [this]);
55
+ Romo.trigger(this.elem, 'romoSpinner:start', [this]);
56
+ }, this));
55
57
  }
56
58
 
57
59
  RomoSpinner.prototype.doStop = function() {
@@ -59,21 +61,24 @@ RomoSpinner.prototype.doStop = function() {
59
61
  return;
60
62
  }
61
63
 
62
- if (this.spinner !== undefined) {
64
+ Romo.pushFn(Romo.proxy(function() {
63
65
  this.spinner.stop();
64
66
  this.spinner = undefined;
65
- }
66
- if (this.elemHtml !== undefined) {
67
- this.elem.innerHTML = this.elemHtml;
68
- }
69
- Romo.rmStyle(this.elem, 'position');
70
- Romo.rmStyle(this.elem, 'width');
71
- Romo.rmStyle(this.elem, 'height');
72
67
 
73
- if (this.elemStyle !== undefined) {
74
- Romo.setAttr(this.elem, 'style', this.elemStyle);
75
- }
76
- Romo.trigger(this.elem, 'romoSpinner:stop', [this]);
68
+ if (this.elemHtml !== undefined) {
69
+ this.elem.innerHTML = this.elemHtml;
70
+ }
71
+
72
+ Romo.rmStyle(this.elem, 'position');
73
+ Romo.rmStyle(this.elem, 'width');
74
+ Romo.rmStyle(this.elem, 'height');
75
+
76
+ if (this.elemStyle !== undefined) {
77
+ Romo.setAttr(this.elem, 'style', this.elemStyle);
78
+ }
79
+
80
+ Romo.trigger(this.elem, 'romoSpinner:stop', [this]);
81
+ }, this))
77
82
  }
78
83
 
79
84
  // private
data/lib/romo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.20.4"
2
+ VERSION = "0.20.5"
3
3
  end
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.20.4
4
+ version: 0.20.5
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-12-07 00:00:00 Z
13
+ date: 2017-12-08 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: assert