MCPcopy
hub / github.com/jeromegn/Backbone.localStorage / getDeferred

Function getDeferred

src/sync.js:10–15  ·  view source on GitHub ↗

Get the Deferred status from $ if we have jQuery, otherwise use Backbone's * @returns {boolean} - Whether the request was deferred

()

Source from the content-addressed store, hash-verified

8 * @returns {boolean} - Whether the request was deferred
9*/
10function getDeferred() {
11 if (Bb.$) {
12 return result(Bb.$, 'Deferred', false);
13 }
14 return result(Bb, 'Deferred', false);
15}
16
17
18/** Override Backbone's `sync` method to run against localStorage

Callers 1

syncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…