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
/** | |
* Copyright (c) Christopher Keefer. All Rights Reserved. | |
* | |
* Overrides the default transport for Backbone syncing to use websockets via socket.io. | |
*/ | |
(function(Backbone, $, _, io){ | |
var urlError = function(){ | |
throw new Error('A "url" property or function must be specified.'); | |
}, | |
eventEmit = io.EventEmitter.prototype.emit, |
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
/** | |
* Copyright (c) Christopher Keefer. All Rights Reserved. | |
* | |
* Overrides the default transport for Backbone syncing to use websockets via socket.io. Includes marionette | |
* convenience code, specifically for sending socket-related events along the global event aggregator. | |
*/ | |
(function(app, Backbone, Marionette, $, _, io){ | |
var urlError = function(){ | |
throw new Error('A "url" property or function must be specified.'); | |
}, |
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
/** | |
* Canvas toBlob shim, adapted with thanks from https://code.google.com/u/105701149099589407503/, | |
* from this chrome bug thread: https://code.google.com/p/chromium/issues/detail?id=67587 | |
*/ | |
(function(){ | |
/** | |
* Convert a base64 image dataURL from a canvas element, to a blob. | |
* @param {function} callback | |
* @param {string} type | |
* @param {number} quality |
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
/** | |
* Copyright (c) 2013 Christopher Keefer. All Rights Reserved. | |
* See https://github.com/SaneMethod/HUp/ | |
* jQuery plugin for reading in files or uploading them with the HTML5 file api and xhr2. | |
*/ | |
"use strict"; | |
(function($){ | |
var filters = {}, | |
fileTypes = []; | |
/** |
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
/** | |
* Copyright (c) Christopher Keefer, 2016. | |
* https://github.com/SaneMethod/fetchCache | |
* | |
* Override fetch in the global context to allow us to cache the response to fetch in a Storage interface | |
* implementing object (such as localStorage). | |
*/ | |
(function (fetch) { | |
/* If the context doesn't support fetch, we won't attempt to patch in our | |
caching using fetch, for obvious reasons. */ |
OlderNewer