/* * jQuery JSONP Core Plugin 2.3.1 (2012-05-16) * * 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 , returnFlag ) { try { returnFlag = method && method.apply( object.context || object , parameters ); } catch( _ ) { returnFlag = !1; } return returnFlag; } // 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 = "