This file contains 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
$.equals = function( a, b, options ) { | |
options = $.extend({ | |
// if true, in case of inequality, a trace of the first difference is logged to the console | |
verbose: false, | |
// use 'strict' for ===, 'abstract' for == | |
comparison: 'strict', |
This file contains 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
$.proxyGet = function ( url, callback, options ) { | |
// reject anything that doesn't resemble a "plain" URL or a null (see below) | |
if (! (url === null || /^(https?:|\/\/)/.test(url))) { | |
throw new SyntaxError('Expected a URL.'); | |
} | |
// allow detection of current SSL mode by starting the url with '//' | |
if (url && url.indexOf('//') === 0) { | |
url = window.location.protocol + url; |
NewerOlder