This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////// fetch /////// | |
const originalFetch = window.fetch; | |
window.fetch = async (...args) => { | |
const fetchee = await originalFetch(...args); | |
return new Proxy(fetchee, {}); | |
}; | |
new Proxy(target, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AmpersandCollection = require('ampersand-collection'), | |
_ = require('underscore'), | |
AmpersandRestCollection = _.clone(require('ampersand-collection-rest-mixin')), | |
sync = require('./sync'), | |
Search = require('./search'), | |
EJSON = require('mongodb-extended-json'), | |
AmpersandModel = require('ampersand-model'); | |
var MongoDBCollection = AmpersandCollection.extend(AmpersandRestCollection, { | |
fetched: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ = jQuery | |
queues = {} | |
running = false | |
queue = (name) -> | |
name = 'default' if name is true | |
queues[name] or= [] | |
next = (name) -> |