////// /* * jQuery JSONP Core Plugin 2.1.0 (2010-06-16) * * http://code.google.com/p/jquery-jsonp/ * * Copyright (c) 2010 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( $ , setTimeout ) { // ###################### UTILITIES ## // Noop function noop() { } // Generic callback for firefox & opera function genericCallback( data ) { lastValue = [ data ]; } // Add script to document function appendScript( node ) { head.insertBefore( node , head.firstChild ); } // Call if defined function callIfDefined( method , object , parameters ) { var my_context = object.context?object.context:object; method && method.apply( my_context , parameters ); } // Give joining character given url function qMarkOrAmp( url ) { return /\?/ .test( url ) ? "&" : "?"; } var // String constants (for better minification) STR_ASYNC = "async", STR_EMPTY = "", STR_ERROR = "error", STR_JQUERY_JSONP = "_jqjsp", STR_ON = "on", STR_ONCLICK = STR_ON + "click", STR_ONERROR = STR_ON + STR_ERROR, STR_ONLOAD = STR_ON + "load", STR_ONREADYSTATECHANGE = STR_ON + "readystatechange", STR_REMOVE_CHILD = "removeChild", STR_SCRIPT_TAG = "