romo 0.14.4 → 0.15.0

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: 3d8167ef081b58a9375eb1f6b42a000b04590e2d
4
- data.tar.gz: f5c6c2e803b1a9ef5f1a97e4ab979f35705bc936
3
+ metadata.gz: 29038a7b155e52db93e90ea26efff083381caab7
4
+ data.tar.gz: 5002aeb2208a9c85108a12289f8c2802d4321e2a
5
5
  SHA512:
6
- metadata.gz: 005eab4ae4efc9c48eb17ca3e7c0679eddcac66a639c885267d00279279f80b417d9a021cb6ee95658dd3894bf731d1bc00a7c09f337378bd893e4e5ffba0ecb
7
- data.tar.gz: a24be3401a228beb391a488590eda3e59e470ad3c9528ad483c5f7c832bd13af838298fb519e84aca437ae7ed079126459d6ff0f252b67f3071043d7ead334e8
6
+ metadata.gz: 44b0beb45e3d30f3ed2fd65807c1ff473fe2462dc8ea68d49067534016b4698f5ccb8ba745b3f555d8b5dc727a57ca8bf034bd4e627f286ea216da2f0db23744
7
+ data.tar.gz: beef77e14c6f677659082312d94a84c8bc1302f86d1e4f3149d6b1db6457ec05c9be1eb2a7e177efd4a5af8b691cf681e422137ace38c8c97f4ca6f81bfb0a97
@@ -10,14 +10,10 @@ var RomoInline = function(element) {
10
10
  this.dismissElem = undefined;
11
11
 
12
12
  this.elem.on('inline:triggerDismiss', $.proxy(this.onDismissClick, this));
13
- this.elem.on('inline:triggerInvoke', $.proxy(function(e) {
14
- this.doInvoke();
13
+ this.elem.on('inline:triggerShow', $.proxy(function(e) {
14
+ this.doShow();
15
15
  }, this));
16
16
 
17
- this.elem.on('invoke:invoke', $.proxy(function(e, invoke) {
18
- this.doInvoke();
19
- return false;
20
- }, this));
21
17
  this.elem.on('invoke:loadStart', $.proxy(function(e, invoke) {
22
18
  this.doLoadStart();
23
19
  return false;
@@ -40,24 +36,20 @@ RomoInline.prototype.doInit = function() {
40
36
  // override as needed
41
37
  }
42
38
 
43
- RomoInline.prototype.doInvoke = function() {
44
- this.elem.show();
45
- this.toggleElem.hide();
46
- this.elem.trigger('inline:invoke', [this]);
47
- }
48
-
49
39
  RomoInline.prototype.doLoadStart = function() {
50
40
  this.elem.html('');
51
41
  this.elem.trigger('inline:loadStart', [this]);
52
42
  }
53
43
 
54
44
  RomoInline.prototype.doLoadSuccess = function(data) {
45
+ this.doShow();
55
46
  Romo.initHtml(this.elem, data);
56
47
  this.doBindDismiss();
57
48
  this.elem.trigger('inline:loadSuccess', [data, this]);
58
49
  }
59
50
 
60
51
  RomoInline.prototype.doLoadError = function(xhr) {
52
+ this.doShow();
61
53
  this.elem.trigger('inline:loadError', [xhr, this]);
62
54
  }
63
55
 
@@ -85,6 +77,12 @@ RomoInline.prototype.doDismiss = function() {
85
77
  this.elem.trigger('inline:dismiss', [this]);
86
78
  }
87
79
 
80
+ RomoInline.prototype.doShow = function() {
81
+ this.elem.show();
82
+ this.toggleElem.hide();
83
+ this.elem.trigger('inline:show', [this]);
84
+ }
85
+
88
86
  Romo.onInitUI(function(e) {
89
87
  Romo.initUIElems(e, '[data-romo-inline-auto="true"]').romoInline();
90
88
  });
data/lib/romo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.14.4"
2
+ VERSION = "0.15.0"
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.14.4
4
+ version: 0.15.0
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: 2016-01-25 00:00:00 Z
13
+ date: 2016-01-26 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: assert