Ext.data.JsonP.Ext_EventManager({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":null,"uses":[],"html":"

Files

Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and provides\nseveral useful events directly.

\n\n

See Ext.EventObject for more details on normalized event objects.

\n
Defined By

Properties

Ext.EventManager
view source
: Numberprivate
Additionally, allow the 'DOM' listener thread to complete (usually desirable with mobWebkit, Gecko)\nbefore firing the...

Additionally, allow the 'DOM' listener thread to complete (usually desirable with mobWebkit, Gecko)\nbefore firing the entire onReady chain (high stack load on Loader) by specifying a delay value.\nDefaults to 1ms.

\n

Defaults to: 1

Ext.EventManager
view source
: Booleanprivate
Check if we have bound our global onReady listener ...

Check if we have bound our global onReady listener

\n

Defaults to: false

Ext.EventManager
view source
: Booleanprivate
Check if fireDocReady has been called ...

Check if fireDocReady has been called

\n

Defaults to: false

Ext.EventManager
view source
: Object
Fires when an event handler finishes its run, just before returning to browser control. ...

Fires when an event handler finishes its run, just before returning to browser control.

\n\n

This includes DOM event handlers, Ajax (including JSONP) event handlers, and TaskRunners

\n\n

This can be useful for performing cleanup, or update tasks which need to happen only\nafter all code in an event handler has been run, but which should not be executed in a timer\ndue to the intervening browser reflow/repaint which would take place.

\n
Ext.EventManager
view source
: RegExpprivate
Options to parse for the 4th argument to addListener. ...

Options to parse for the 4th argument to addListener.

\n

Defaults to: /^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate|freezeEvent)$/

Ext.EventManager
view source
readyEvent : Objectprivate

Holds references to any onReady functions

\n

Holds references to any onReady functions

\n
Ext.EventManager
view source
scrollTimeout : Objectprivate

Timer for doScroll polling

\n

Timer for doScroll polling

\n
Ext.EventManager
view source
stoppedMouseDownEvent : Objectprivate

Contains a list of all document mouse downs, so we can ensure they fire even when stopEvent is called.

\n

Contains a list of all document mouse downs, so we can ensure they fire even when stopEvent is called.

\n
Ext.EventManager
view source
: Objectprivate
note 1: IE fires ONLY the keydown event on specialkey autorepeat\nnote 2: Safari < 3.1, Gecko (Mac/Linux) & Ope...

note 1: IE fires ONLY the keydown event on specialkey autorepeat\nnote 2: Safari < 3.1, Gecko (Mac/Linux) & Opera fire only the keypress event on specialkey autorepeat\n(research done by Jan Wolter at http://unixpapa.com/js/key.html)

\n
Defined By

Methods

Ext.EventManager
view source
( el, eventName, handler, [scope], [options] )
Appends an event handler to an element. ...

Appends an event handler to an element. The shorthand version on is equivalent.\nTypically you will use Ext.Element.addListener directly on an Element in favor of\ncalling this version.

\n\n

on is an alias for addListener.

\n

Parameters

  • el : String/Ext.Element/HTMLElement/Window

    The html element or id to assign the event handler to.

    \n\n
  • eventName : String

    The name of the event to listen for.

    \n\n
  • handler : Function/String

    The handler function the event invokes. A String parameter\nis assumed to be method name in scope object, or Element object if no scope is provided.

    \n\n
    • event : Ext.EventObject

      The EventObject describing the event.

      \n\n
    • target : Ext.dom.Element

      The Element which was the target of the event.\nNote that this may be filtered by using the delegate option.

      \n\n
    • options : Object

      The options object from the addListener call.

      \n\n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed.\nDefaults to the Element.

    \n\n
  • options : Object (optional)

    An object containing handler configuration properties.\nThis may contain any of the following properties (See Ext.Element.addListener\nfor examples of how to use these options.):

    \n\n
    • scope : Object

      The scope (this reference) in which the handler function is executed. Defaults to the Element.

      \n\n
    • delegate : String

      A simple selector to filter the target or look for a descendant of the target

      \n\n
    • stopEvent : Boolean

      True to stop the event. That is stop propagation, and prevent the default action.

      \n\n
    • preventDefault : Boolean

      True to prevent the default action

      \n\n
    • stopPropagation : Boolean

      True to prevent event propagation

      \n\n
    • normalized : Boolean

      False to pass a browser event to the handler function instead of an Ext.EventObject

      \n\n
    • delay : Number

      The number of milliseconds to delay the invocation of the handler after te event fires.

      \n\n
    • single : Boolean

      True to add a handler to handle just the next firing of the event, and then remove itself.

      \n\n
    • buffer : Number

      Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is not invoked, but the new handler is scheduled in its place.

      \n\n
    • target : Ext.dom.Element

      Only call the handler if the event was fired on the target Element,\nnot if the event was bubbled up from a child node.

      \n\n
Ext.EventManager
view source
( )private
Binds the appropriate browser event for checking if the DOM has loaded. ...

Binds the appropriate browser event for checking if the DOM has loaded.

\n
Ext.EventManager
view source
( element, eventName ) : Arrayprivate
Clones the event cache for a particular element for a particular event ...

Clones the event cache for a particular element for a particular event

\n

Parameters

  • element : HTMLElement

    The element

    \n
  • eventName : Object

    The event name

    \n

Returns

  • Array

    The cloned events for the element

    \n
Ext.EventManager
view source
( event )private
Checks whether the event's relatedTarget is contained inside (or is) the element. ...

Checks whether the event's relatedTarget is contained inside (or is) the element.

\n

Parameters

Ext.EventManager
view source
( dom, ename, fn, scope, options ) : Functionprivate
Create the wrapper function for the event ...

Create the wrapper function for the event

\n

Parameters

  • dom : HTMLElement

    The dom element

    \n
  • ename : String

    The event name

    \n
  • fn : Function

    The function to execute

    \n
  • scope : Object

    The scope to execute callback in

    \n
  • options : Object

    The options

    \n

Returns

Ext.EventManager
view source
( )private
We know the document is loaded, so trigger any onReady events. ...

We know the document is loaded, so trigger any onReady events.

\n
Ext.EventManager
view source
( )private
Fires the ready event ...

Fires the ready event

\n
Ext.EventManager
view source
( )private
Fire the resize event. ...

Fire the resize event.

\n
Ext.EventManager
view source
( )private
Fires the unload event for items bound with onWindowUnload ...

Fires the unload event for items bound with onWindowUnload

\n
Ext.EventManager
view source
( element ) : Objectprivate
Gets the event cache object for a particular element ...

Gets the event cache object for a particular element

\n

Parameters

  • element : HTMLElement

    The element

    \n

Returns

  • Object

    The event cache object

    \n
Ext.EventManager
view source
( element, eventName ) : Arrayprivate
Get the event cache for a particular element for a particular event ...

Get the event cache for a particular element for a particular event

\n

Parameters

  • element : HTMLElement

    The element

    \n
  • eventName : Object

    The event name

    \n

Returns

  • Array

    The events for the element

    \n
Ext.EventManager
view source
( element ) : String
Get the id of the element. ...

Get the id of the element. If one has not been assigned, automatically assign it.

\n

Parameters

  • element : HTMLElement/Ext.Element

    The element to get the id for.

    \n

Returns

Ext.EventManager
view source
( ) : String
Indicates which event to use for getting key presses. ...

Indicates which event to use for getting key presses.

\n

Returns

  • String

    The appropriate event name.

    \n
Ext.EventManager
view source
( event ) : Number
Gets the x coordinate from the event ...

Gets the x coordinate from the event

\n

Parameters

Returns

Ext.EventManager
view source
( event ) : Number[]
Gets the x & y coordinate from the event ...

Gets the x & y coordinate from the event

\n

Parameters

Returns

Ext.EventManager
view source
( event ) : Number
Gets the y coordinate from the event ...

Gets the y coordinate from the event

\n

Parameters

Returns

Ext.EventManager
view source
( event ) : HTMLElement
Gets the related target from the event. ...

Gets the related target from the event.

\n

Parameters

Returns

  • HTMLElement

    The related target.

    \n
Ext.EventManager
view source
( event ) : HTMLElement
Gets the target of the event. ...

Gets the target of the event.

\n

Parameters

Returns

  • HTMLElement

    target

    \n
Ext.EventManager
view source
( )private
detects whether the EventManager has been placed in a paused state for synchronization\nwith external debugging / perf...

detects whether the EventManager has been placed in a paused state for synchronization\nwith external debugging / perf tools (PageAnalyzer)

\n
Ext.EventManager
view source
( eventName, fn ) : Objectprivate
Normalize cross browser event differences ...

Normalize cross browser event differences

\n

Parameters

  • eventName : Object

    The event name

    \n
  • fn : Object

    The function to execute

    \n

Returns

  • Object

    The new event name/function

    \n
Ext.EventManager
view source
( el, eventName, handler, [scope], [options] )
Appends an event handler to an element. ...

Appends an event handler to an element. The shorthand version on is equivalent.\nTypically you will use Ext.Element.addListener directly on an Element in favor of\ncalling this version.

\n\n

on is an alias for addListener.

\n

Parameters

  • el : String/Ext.Element/HTMLElement/Window

    The html element or id to assign the event handler to.

    \n\n
  • eventName : String

    The name of the event to listen for.

    \n\n
  • handler : Function/String

    The handler function the event invokes. A String parameter\nis assumed to be method name in scope object, or Element object if no scope is provided.

    \n\n
    • event : Ext.EventObject

      The EventObject describing the event.

      \n\n
    • target : Ext.dom.Element

      The Element which was the target of the event.\nNote that this may be filtered by using the delegate option.

      \n\n
    • options : Object

      The options object from the addListener call.

      \n\n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed.\nDefaults to the Element.

    \n\n
  • options : Object (optional)

    An object containing handler configuration properties.\nThis may contain any of the following properties (See Ext.Element.addListener\nfor examples of how to use these options.):

    \n\n
    • scope : Object

      The scope (this reference) in which the handler function is executed. Defaults to the Element.

      \n\n
    • delegate : String

      A simple selector to filter the target or look for a descendant of the target

      \n\n
    • stopEvent : Boolean

      True to stop the event. That is stop propagation, and prevent the default action.

      \n\n
    • preventDefault : Boolean

      True to prevent the default action

      \n\n
    • stopPropagation : Boolean

      True to prevent event propagation

      \n\n
    • normalized : Boolean

      False to pass a browser event to the handler function instead of an Ext.EventObject

      \n\n
    • delay : Number

      The number of milliseconds to delay the invocation of the handler after te event fires.

      \n\n
    • single : Boolean

      True to add a handler to handle just the next firing of the event, and then remove itself.

      \n\n
    • buffer : Number

      Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is not invoked, but the new handler is scheduled in its place.

      \n\n
    • target : Ext.dom.Element

      Only call the handler if the event was fired on the target Element,\nnot if the event was bubbled up from a child node.

      \n\n
Ext.EventManager
view source
( fn, [scope], [options] )
Adds a listener to be notified when the document is ready (before onload and before images are loaded). ...

Adds a listener to be notified when the document is ready (before onload and before images are loaded).

\n\n

Ext.onDocumentReady is an alias for onDocumentReady.

\n

Parameters

  • fn : Function

    The method the event invokes.

    \n
  • scope : Object (optional)

    The scope (this reference) in which the handler function executes.\nDefaults to the browser window.

    \n
  • options : Object (optional)

    Options object as passed to Ext.Element.addListener.

    \n
Ext.EventManager
view source
( fn, scope, [options] )
Adds a listener to be notified when the browser window is resized and provides resize event buffering (100 millisecon...

Adds a listener to be notified when the browser window is resized and provides resize event buffering (100 milliseconds),\npasses new viewport width and height to handlers.

\n

Parameters

  • fn : Function

    The handler function the window resize event invokes.

    \n
  • scope : Object

    The scope (this reference) in which the handler function executes. Defaults to the browser window.

    \n
  • options : Boolean (optional)

    Options object as passed to Ext.Element.addListener

    \n
Ext.EventManager
view source
( fn, scope, options )
Adds a listener to be notified when the browser window is unloaded. ...

Adds a listener to be notified when the browser window is unloaded.

\n

Parameters

  • fn : Function

    The handler function the window unload event invokes.

    \n
  • scope : Object

    The scope (this reference) in which the handler function executes. Defaults to the browser window.

    \n
  • options : Boolean

    Options object as passed to Ext.Element.addListener

    \n
Ext.EventManager
view source
( )
This strategy has minimal benefits for Sencha solutions that build themselves (ie. ...

This strategy has minimal benefits for Sencha solutions that build themselves (ie. minimal initial page markup).\nHowever, progressively-enhanced pages (with image content and/or embedded frames) will benefit the most from it.\nBrowser timer resolution is too poor to ensure a doScroll check more than once on a page loaded with minimal\nassets (the readystatechange event 'complete' usually beats the doScroll timer on a 'lightly-loaded' initial document).

\n
Ext.EventManager
view source
( element, event, isRemove )private
Convert a \"config style\" listener into a set of flat arguments so they can be passed to addListener ...

Convert a \"config style\" listener into a set of flat arguments so they can be passed to addListener

\n

Parameters

  • element : Object

    The element the event is for

    \n
  • event : Object

    The event configuration

    \n
  • isRemove : Object

    True if a removal should be performed, otherwise an add will be done.

    \n
Ext.EventManager
view source
( event )
Prevents the browsers default handling of the event. ...

Prevents the browsers default handling of the event.

\n

Parameters

  • event : Event

    The event to prevent the default

    \n
Ext.EventManager
view source
( el, [eventName] )
Recursively removes all previous added listeners from an element and its children. ...

Recursively removes all previous added listeners from an element and its children. Typically you will use Ext.Element.purgeAllListeners\ndirectly on an Element in favor of calling this version.

\n

Parameters

  • el : String/Ext.Element/HTMLElement/Window

    The id or html element from which to remove all event handlers.

    \n
  • eventName : String (optional)

    The name of the event.

    \n
Ext.EventManager
view source
( el )
Removes all event handers from an element. ...

Removes all event handers from an element. Typically you will use Ext.Element.removeAllListeners\ndirectly on an Element in favor of calling this version.

\n

Parameters

  • el : String/Ext.Element/HTMLElement/Window

    The id or html element from which to remove all event handlers.

    \n
Ext.EventManager
view source
( el, eventName, fn, scope )
Removes an event handler from an element. ...

Removes an event handler from an element. The shorthand version un is equivalent. Typically\nyou will use Ext.Element.removeListener directly on an Element in favor of calling this version.

\n\n

on is an alias for addListener.

\n

Parameters

  • el : String/Ext.Element/HTMLElement/Window

    The id or html element from which to remove the listener.

    \n\n
  • eventName : String

    The name of the event.

    \n\n
  • fn : Function

    The handler function to remove. This must be a reference to the function passed\ninto the addListener call.

    \n\n
  • scope : Object

    If a scope (this reference) was specified when the listener was added,\nthen this must refer to the same object.

    \n\n
Ext.EventManager
view source
( fn, scope )
Removes the passed window resize listener. ...

Removes the passed window resize listener.

\n

Parameters

  • fn : Function

    The method the event invokes

    \n
  • scope : Object

    The scope of handler

    \n
Ext.EventManager
view source
( fn, scope )
Removes the passed window unload listener. ...

Removes the passed window unload listener.

\n

Parameters

  • fn : Function

    The method the event invokes

    \n
  • scope : Object

    The scope of handler

    \n
Ext.EventManager
view source
( node ) : HTMLElementprivate
Resolve any text nodes accounting for browser differences. ...

Resolve any text nodes accounting for browser differences.

\n

Parameters

  • node : HTMLElement

    The node

    \n

Returns

  • HTMLElement

    The resolved node

    \n
Ext.EventManager
view source
( event )
Stop the event (preventDefault and stopPropagation) ...

Stop the event (preventDefault and stopPropagation)

\n

Parameters

  • event : Event

    The event to stop

    \n
Ext.EventManager
view source
( event )
Cancels bubbling of the event. ...

Cancels bubbling of the event.

\n

Parameters

  • event : Event

    The event to stop bubbling.

    \n
Ext.EventManager
view source
( el, eventName, fn, scope )
Removes an event handler from an element. ...

Removes an event handler from an element. The shorthand version un is equivalent. Typically\nyou will use Ext.Element.removeListener directly on an Element in favor of calling this version.

\n\n

on is an alias for addListener.

\n

Parameters

  • el : String/Ext.Element/HTMLElement/Window

    The id or html element from which to remove the listener.

    \n\n
  • eventName : String

    The name of the event.

    \n\n
  • fn : Function

    The handler function to remove. This must be a reference to the function passed\ninto the addListener call.

    \n\n
  • scope : Object

    If a scope (this reference) was specified when the listener was added,\nthen this must refer to the same object.

    \n\n
","superclasses":[],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"EventManager.html#Ext-EventManager","filename":"EventManager.js"}],"linenr":5,"members":{"property":[{"tagname":"property","owner":"Ext.EventManager","meta":{"private":true},"name":"deferReadyEvent","id":"property-deferReadyEvent"},{"tagname":"property","owner":"Ext.EventManager","meta":{"private":true},"name":"hasBoundOnReady","id":"property-hasBoundOnReady"},{"tagname":"property","owner":"Ext.EventManager","meta":{"private":true},"name":"hasFiredReady","id":"property-hasFiredReady"},{"tagname":"property","owner":"Ext.EventManager","meta":{},"name":"idleEvent","id":"property-idleEvent"},{"tagname":"property","owner":"Ext.EventManager","meta":{"private":true},"name":"propRe","id":"property-propRe"},{"tagname":"property","owner":"Ext.EventManager","meta":{"private":true},"name":"readyEvent","id":"property-readyEvent"},{"tagname":"property","owner":"Ext.EventManager","meta":{"private":true},"name":"scrollTimeout","id":"property-scrollTimeout"},{"tagname":"property","owner":"Ext.EventManager","meta":{"private":true},"name":"stoppedMouseDownEvent","id":"property-stoppedMouseDownEvent"},{"tagname":"property","owner":"Ext.EventManager","meta":{"private":true},"name":"useKeyDown","id":"property-useKeyDown"}],"cfg":[],"css_var":[],"method":[{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"addListener","id":"method-addListener"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"bindReadyEvent","id":"method-bindReadyEvent"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"cloneEventListenerCache","id":"method-cloneEventListenerCache"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"contains","id":"method-contains"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"createListenerWrap","id":"method-createListenerWrap"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"fireDocReady","id":"method-fireDocReady"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"fireReadyEvent","id":"method-fireReadyEvent"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"fireResize","id":"method-fireResize"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"fireUnload","id":"method-fireUnload"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"getEventCache","id":"method-getEventCache"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"getEventListenerCache","id":"method-getEventListenerCache"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"getId","id":"method-getId"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"getKeyEvent","id":"method-getKeyEvent"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"getPageX","id":"method-getPageX"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"getPageXY","id":"method-getPageXY"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"getPageY","id":"method-getPageY"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"getRelatedTarget","id":"method-getRelatedTarget"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"getTarget","id":"method-getTarget"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"isReadyPaused","id":"method-isReadyPaused"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"normalizeEvent","id":"method-normalizeEvent"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"on","id":"method-on"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"onDocumentReady","id":"method-onDocumentReady"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"onWindowResize","id":"method-onWindowResize"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"onWindowUnload","id":"method-onWindowUnload"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"pollScroll","id":"method-pollScroll"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"prepareListenerConfig","id":"method-prepareListenerConfig"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"preventDefault","id":"method-preventDefault"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"purgeElement","id":"method-purgeElement"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"removeAll","id":"method-removeAll"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"removeListener","id":"method-removeListener"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"removeResizeListener","id":"method-removeResizeListener"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"removeUnloadListener","id":"method-removeUnloadListener"},{"tagname":"method","owner":"Ext.EventManager","meta":{"private":true},"name":"resolveTextNode","id":"method-resolveTextNode"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"stopEvent","id":"method-stopEvent"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"stopPropagation","id":"method-stopPropagation"},{"tagname":"method","owner":"Ext.EventManager","meta":{},"name":"un","id":"method-un"}],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.EventManager","singleton":true,"override":null,"inheritdoc":null,"id":"class-Ext.EventManager","mixins":[],"mixedInto":[]});