skycap 0.2.3 → 0.2.3.1
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.
- data/lib/skycap/app/static/skycap.js +4 -4
- data/lib/skycap/version.rb +1 -1
- metadata +3 -3
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
objectId : null,
|
|
11
11
|
|
|
12
12
|
// The object-level data.
|
|
13
|
-
data :
|
|
13
|
+
data : null,
|
|
14
14
|
|
|
15
15
|
// The pending action to be sent once the library is initialized.
|
|
16
16
|
pendingAction : null,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
this.objectId = objectId;
|
|
43
43
|
this.data = data;
|
|
44
44
|
|
|
45
|
-
if(this.initialized) {
|
|
45
|
+
if(this.initialized && this.data) {
|
|
46
46
|
this.send();
|
|
47
47
|
}
|
|
48
48
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
*/
|
|
81
81
|
send : function(action, callback) {
|
|
82
82
|
if(!this.objectId) {
|
|
83
|
-
log("[skycap] Cannot track without object identifier.");
|
|
83
|
+
this.log("[skycap] Cannot track without object identifier.");
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
if(typeof(onload) == "function") onload();
|
|
182
182
|
|
|
183
183
|
// Delay first action until after initialization.
|
|
184
|
-
if(skycap.data
|
|
184
|
+
if(skycap.data || skycap.pendingAction) {
|
|
185
185
|
skycap.send(skycap.pendingAction, skycap.pendingCallback);
|
|
186
186
|
}
|
|
187
187
|
}
|
data/lib/skycap/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: skycap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.3
|
|
4
|
+
version: 0.2.3.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -282,7 +282,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
282
282
|
version: '0'
|
|
283
283
|
segments:
|
|
284
284
|
- 0
|
|
285
|
-
hash:
|
|
285
|
+
hash: -448274978671732161
|
|
286
286
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
287
|
none: false
|
|
288
288
|
requirements:
|
|
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
291
291
|
version: '0'
|
|
292
292
|
segments:
|
|
293
293
|
- 0
|
|
294
|
-
hash:
|
|
294
|
+
hash: -448274978671732161
|
|
295
295
|
requirements: []
|
|
296
296
|
rubyforge_project:
|
|
297
297
|
rubygems_version: 1.8.25
|