/* * jQuery JSONP Core Plugin 2.4.0 (2012-08-21) * * https://github.com/jaubourg/jquery-jsonp * * Copyright (c) 2012 Julian Aubourg * * This document is licensed as free software under the terms of the * MIT License: http://www.opensource.org/licenses/mit-license.php */ ( function( $ ) { // ###################### UTILITIES ## // Noop function noop() { } // Generic callback function genericCallback( data ) { lastValue = [ data ]; } // Call if defined function callIfDefined( method , object , parameters ) { return method && method.apply( object.context || object , parameters ); } // Give joining character given url function qMarkOrAmp( url ) { return /\?/ .test( url ) ? "&" : "?"; } var // String constants (for better minification) STR_ASYNC = "async", STR_CHARSET = "charset", STR_EMPTY = "", STR_ERROR = "error", STR_INSERT_BEFORE = "insertBefore", STR_JQUERY_JSONP = "_jqjsp", STR_ON = "on", STR_ON_CLICK = STR_ON + "click", STR_ON_ERROR = STR_ON + STR_ERROR, STR_ON_LOAD = STR_ON + "load", STR_ON_READY_STATE_CHANGE = STR_ON + "readystatechange", STR_READY_STATE = "readyState", STR_REMOVE_CHILD = "removeChild", STR_SCRIPT_TAG = "