/** * Called by ModuleSpace in Development Mode when running onModuleLoads. */ private static void exit(boolean initialEntry) { if (initialEntry) { SchedulerImpl.INSTANCE.flushFinallyCommands(); } // Decrement after we call flush entryDepth--; assert entryDepth >= 0 : "Negative entryDepth value at exit " + entryDepth; if (initialEntry) { assert entryDepth == 0 : "Depth not 0" + entryDepth; if (GWT.isScript() && watchdogEntryDepthTimerId != -1) { watchdogEntryDepthCancel(watchdogEntryDepthTimerId); watchdogEntryDepthTimerId = -1; } } }
/** * Called by ModuleSpace in Development Mode when running onModuleLoads. */ private static void exit(boolean initialEntry) { if (initialEntry) { SchedulerImpl.INSTANCE.flushFinallyCommands(); } // Decrement after we call flush entryDepth--; assert entryDepth >= 0 : "Negative entryDepth value at exit " + entryDepth; if (initialEntry) { assert entryDepth == 0 : "Depth not 0" + entryDepth; if (GWT.isScript() && watchdogEntryDepthTimerId != -1) { watchdogEntryDepthCancel(watchdogEntryDepthTimerId); watchdogEntryDepthTimerId = -1; } } }
/** * Called by ModuleSpace in Development Mode when running onModuleLoads. */ private static void exit(boolean initialEntry) { if (initialEntry) { SchedulerImpl.INSTANCE.flushFinallyCommands(); } // Decrement after we call flush entryDepth--; assert entryDepth >= 0 : "Negative entryDepth value at exit " + entryDepth; if (initialEntry) { assert entryDepth == 0 : "Depth not 0" + entryDepth; if (GWT.isScript() && watchdogEntryDepthTimerId != -1) { watchdogEntryDepthCancel(watchdogEntryDepthTimerId); watchdogEntryDepthTimerId = -1; } } }
/** * Called by ModuleSpace in Development Mode when running onModuleLoads. */ private static void exit(boolean initialEntry) { if (initialEntry) { SchedulerImpl.INSTANCE.flushFinallyCommands(); } // Decrement after we call flush entryDepth--; assert entryDepth >= 0 : "Negative entryDepth value at exit " + entryDepth; if (initialEntry) { assert entryDepth == 0 : "Depth not 0" + entryDepth; if (GWT.isScript() && watchdogEntryDepthTimerId != -1) { watchdogEntryDepthCancel(watchdogEntryDepthTimerId); watchdogEntryDepthTimerId = -1; } } }
/** * Central dispatching function for events emitted by DOM objects * @param event The DOM event * @param node The object processing the event * @param elem The object emitting the event */ public void dispatch(NativeEvent event, OMNode node, Element elem) { //Window.alert("type=" + event.getType()); SchedulerImpl.INSTANCE.flushEntryCommands(); String eventName = event.getType(); if ("mouseover".equals(eventName) || "mouseout".equals(eventName)) { // Mouseover and mouseout deserve special treatment // to solve issues described in: // http://www.quirksmode.org/js/events_mouse.html // For SVG, it seems better to test against the tree rooted at // evt.currentTarget than againt the subtree rooted at evt.target if (isChildOf((Node)event.getCurrentEventTarget().cast(), (Node)event.getRelatedEventTarget().cast())) { return; } } node.dispatch(event); SchedulerImpl.INSTANCE.flushFinallyCommands(); }
/** * Central dispatching function for events emitted by DOM objects * @param event The DOM event * @param node The object processing the event * @param elem The object emitting the event */ public void dispatch(NativeEvent event, OMNode node, Element elem) { //Window.alert("type=" + event.getType()); SchedulerImpl.INSTANCE.flushEntryCommands(); String eventName = event.getType(); if ("mouseover".equals(eventName) || "mouseout".equals(eventName)) { // Mouseover and mouseout deserve special treatment // to solve issues described in: // http://www.quirksmode.org/js/events_mouse.html // For SVG, it seems better to test against the tree rooted at // evt.currentTarget than againt the subtree rooted at evt.target if (isChildOf((Node)event.getCurrentEventTarget().cast(), (Node)event.getRelatedEventTarget().cast())) { return; } } node.dispatch(event); SchedulerImpl.INSTANCE.flushFinallyCommands(); }