cedar 0.2.74.pre → 0.2.75.pre
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 +4 -4
- data/lib/assets/javascripts/cedar_source.js +9 -9
- data/lib/cedar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8253c7cd2893000d1de5444f423af695008e01fc
|
4
|
+
data.tar.gz: b6262ffdb67d035a7256d022c41bd5e662cbe845
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52eb54e19bceb547f2d670798343809715ad43813397a493497963d7cbc983638e84a65d8d50f61efbbac45567c483cc145f669182cd9fa50e7cf8620ff460e7
|
7
|
+
data.tar.gz: b7b54fbf1f0adb1347b3189bedc775cf9a7e12a4032b1e97128922a5da0d3269b2a0bc21bafbca939075c72d5eabd5e53878025e202ae4644df216e8c30e4383
|
@@ -393,19 +393,19 @@ Cedar.Store.prototype.checkVersion = function() {
|
|
393
393
|
// Returns an already resolving getJSON request if it matches
|
394
394
|
Cedar.Store.prototype.lockedRequest = function(options) {
|
395
395
|
options = options || {};
|
396
|
-
this.requestCache || (this.requestCache = {});
|
397
|
-
|
398
|
-
var requestKey = JSON.stringify({path: options.path, params: options.params});
|
399
|
-
var request = $.Deferred().resolve();
|
400
396
|
|
401
397
|
if (Cedar.config.liveMode) {
|
402
|
-
|
403
|
-
|
398
|
+
this.requestCache || (this.requestCache = {});
|
399
|
+
|
400
|
+
var requestKey = JSON.stringify({path: options.path, params: options.params});
|
401
|
+
|
402
|
+
return this.requestCache[requestKey] || (this.requestCache[requestKey] = $
|
403
|
+
.getJSON(Cedar.config.api + options.path, options.params).then(function(response){
|
404
404
|
options.success(response);
|
405
|
-
}.bind(this));
|
405
|
+
}.bind(this)));
|
406
|
+
} else {
|
407
|
+
return $.Deferred().resolve();
|
406
408
|
}
|
407
|
-
|
408
|
-
return this.requestCache[requestKey] || (this.requestCache[requestKey] = request);
|
409
409
|
};
|
410
410
|
|
411
411
|
|
data/lib/cedar/version.rb
CHANGED