simc/circuitjs1/circuitjs1.devmode.js

2 lines
15 KiB
JavaScript
Raw Normal View History

2024-10-03 06:55:46 +05:30
circuitjs1.onScriptDownloaded(['var $wnd = $wnd || window.parent;var __gwtModuleFunction = $wnd.circuitjs1;var $sendStats = __gwtModuleFunction.__sendStats;$sendStats(\'moduleStartup\', \'moduleEvalStart\');var $gwt_version = "2.7.0";var $strongName = \'\';var $gwt = {};var $doc = $wnd.document;var $moduleName, $moduleBase;function __gwtStartLoadingFragment(frag) {var fragFile = \'deferredjs/\' + $strongName + \'/\' + frag + \'.cache.js\';return __gwtModuleFunction.__startLoadingFragment(fragFile);}function __gwtInstallCode(code) {return __gwtModuleFunction.__installRunAsyncCode(code);}function __gwt_isKnownPropertyValue(propName, propValue) {return __gwtModuleFunction.__gwt_isKnownPropertyValue(propName, propValue);}function __gwt_getMetaProperty(name) {return __gwtModuleFunction.__gwt_getMetaProperty(name);}var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent && $wnd.__gwtStatsEvent(a);} : null;var $sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;/******************************************************************************\n * Variables used by the Plugin\n *****************************************************************************/\nvar $entry;\nvar $hostedHtmlVersion="2.1";\n\nvar $errFn;\nvar $moduleName;\nvar $moduleBase;\nvar __gwt_getProperty;\n\n/******************************************************************************\n * WRITE ME - what does this invokes stuff do??? Probably related to invoking\n * calls...\n *****************************************************************************/\nvar __gwt_javaInvokes = [];\n\n// Wrapper to call JS methods, which we need both to be able to supply a\n// different this for method lookup and to get the exception back\nfunction __gwt_jsInvoke(thisObj, methodName) {\n try {\n var args = Array.prototype.slice.call(arguments, 2);\n return [0, window[methodName].apply(thisObj, args)];\n } catch (e) {\n return [1, e];\n }\n}\n\nfunction __gwt_makeJavaInvoke(argCount) {\n return __gwt_javaInvokes[argCount] || __gwt_doMakeJavaInvoke(argCount);\n}\n\nfunction __gwt_doMakeJavaInvoke(argCount) {\n // IE6 won\'t eval() anonymous functions except as r-values\n var argList = "";\n for (var i = 0; i < argCount; i++) {\n argList += ",p" + i;\n }\n var argListNoComma = argList.substring(1);\n\n return eval(\n "__gwt_javaInvokes[" + argCount + "] =\\n" +\n " function(thisObj, dispId" + argList + ") {\\n" +\n " var result = __static(dispId, thisObj" + argList + ");\\n" +\n " if (result[0]) {\\n" +\n " throw result[1];\\n" +\n " } else {\\n" +\n " return result[1];\\n" +\n " }\\n" +\n " }\\n"\n ); \n}\n\n\n/******************************************************************************\n * Functions used to create tear-offs of Java methods. Each function corresponds\n * to exactly one dispId, and also embeds the argument count. We get the "this"\n * value from the context in which the function is being executed.\n * Function-object identity is preserved by caching in a sparse array.\n *****************************************************************************/\nvar __gwt_tearOffs = [];\nvar __gwt_tearOffGenerators = [];\nfunction __gwt_makeTearOff(proxy, dispId, argCount) {\n return __gwt_tearOffs[dispId] || __gwt_doMakeTearOff(dispId, argCount);\n}\n\nfunction __gwt_doMakeTearOff(dispId, argCount) {\n return __gwt_tearOffs[dispId] = \n (__gwt_tearOffGenerators[argCount] || __gwt_doMakeTearOffGenerator(argCount))(dispId);\n}\n\nfunction __gwt_doMakeTearOffGenerator(argCount) {\n // IE6 won\'t eval() anonymous functions except as r-values\n var argList = "";\n for (var i = 0; i < argCount; i++) {\n argList += ",p" + i;\n }\n var argListNoComma = argList.substring(1);\n\n return eval(\n "__gwt_tearOffGenerators[" + argCount + "] =\\n" +\n " function(dispId) {\\n" +\n " return function(" + argListNoComma + ") {\\n" +\n " var result = __static(dispId, this" + argList + ");\\n" +\n " if (result[0]) {\\n" +\n " throw