Ext.data.JsonP.Ext_EventManager({"mixins":[],"code_type":"assignment","inheritable":false,"component":false,"meta":{},"mixedInto":[],"uses":[],"aliases":{},"parentMixins":[],"superclasses":[],"members":{"event":[],"property":[{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"property","name":"deferReadyEvent","id":"property-deferReadyEvent"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"property","name":"hasBoundOnReady","id":"property-hasBoundOnReady"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"property","name":"hasFiredReady","id":"property-hasFiredReady"},{"meta":{},"owner":"Ext.EventManager","tagname":"property","name":"idleEvent","id":"property-idleEvent"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"property","name":"propRe","id":"property-propRe"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"property","name":"readyEvent","id":"property-readyEvent"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"property","name":"scrollTimeout","id":"property-scrollTimeout"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"property","name":"stoppedMouseDownEvent","id":"property-stoppedMouseDownEvent"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"property","name":"useKeyDown","id":"property-useKeyDown"}],"css_var":[],"method":[{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"addListener","id":"method-addListener"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"bindReadyEvent","id":"method-bindReadyEvent"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"contains","id":"method-contains"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"createListenerWrap","id":"method-createListenerWrap"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"fireDocReady","id":"method-fireDocReady"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"fireReadyEvent","id":"method-fireReadyEvent"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"fireResize","id":"method-fireResize"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"fireUnload","id":"method-fireUnload"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"getEventListenerCache","id":"method-getEventListenerCache"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"getId","id":"method-getId"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"getKeyEvent","id":"method-getKeyEvent"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"getPageX","id":"method-getPageX"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"getPageXY","id":"method-getPageXY"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"getPageY","id":"method-getPageY"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"getRelatedTarget","id":"method-getRelatedTarget"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"getTarget","id":"method-getTarget"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"isReadyPaused","id":"method-isReadyPaused"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"normalizeEvent","id":"method-normalizeEvent"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"on","id":"method-on"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"onDocumentReady","id":"method-onDocumentReady"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"onWindowResize","id":"method-onWindowResize"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"onWindowUnload","id":"method-onWindowUnload"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"pollScroll","id":"method-pollScroll"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"prepareListenerConfig","id":"method-prepareListenerConfig"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"preventDefault","id":"method-preventDefault"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"purgeElement","id":"method-purgeElement"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"removeAll","id":"method-removeAll"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"removeListener","id":"method-removeListener"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"removeResizeListener","id":"method-removeResizeListener"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"removeUnloadListener","id":"method-removeUnloadListener"},{"meta":{"private":true},"owner":"Ext.EventManager","tagname":"method","name":"resolveTextNode","id":"method-resolveTextNode"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"stopEvent","id":"method-stopEvent"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"stopPropagation","id":"method-stopPropagation"},{"meta":{},"owner":"Ext.EventManager","tagname":"method","name":"un","id":"method-un"}],"css_mixin":[],"cfg":[]},"tagname":"class","extends":null,"html":"

Files

Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and provides\nseveral useful events directly.\nSee 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\n@default 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 a DOM event handler finishes its run, just before returning to browser control. ...

Fires when a DOM event handler finishes its run, just before returning to browser control.\nThis can be useful for performing cleanup, or upfdate 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
: Objectprivate
Timer for doScroll polling ...

Timer for doScroll polling

\n

Defaults to: null

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
( String/HTMLElement el, String eventName, Function handler, [Object scope], [Object options] )
Appends an event handler to an element. ...

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

\n

Parameters

  • el : String/HTMLElement

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

    \n
  • eventName : String

    The name of the event to listen for.

    \n
  • handler : Function

    The handler function the event invokes. This function is passed\nthe following parameters:

      \n
    • evt : EventObject
      The EventObject describing the event.
    • \n
    • t : Element
      The Element which was the target of the event.\nNote that this may be filtered by using the delegate option.
    • \n
    • o : Object
      The options object from the addListener call.
    • \n

    \n
  • scope : Object (optional)

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

    \n
  • options : Object (optional)

    An object containing handler configuration properties.\nThis may contain any of the following properties:

      \n
    • scope : Object
      The scope (this reference) in which the handler function is executed. Defaults to the Element.
    • \n
    • delegate : String
      A simple selector to filter the target or look for a descendant of the target
    • \n
    • stopEvent : Boolean
      True to stop the event. That is stop propagation, and prevent the default action.
    • \n
    • preventDefault : Boolean
      True to prevent the default action
    • \n
    • stopPropagation : Boolean
      True to prevent event propagation
    • \n
    • normalized : Boolean
      False to pass a browser event to the handler function instead of an Ext.EventObject
    • \n
    • delay : Number
      The number of milliseconds to delay the invocation of the handler after te event fires.
    • \n
    • single : Boolean
      True to add a handler to handle just the next firing of the event, and then remove itself.
    • \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
    • target : Element
      Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node.
    • \n

    \n\n

    See Ext.Element.addListener for examples of how to use these options.

    \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
( Object 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
( HTMLElement dom, String ename, Function fn, Object scope, Object 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
( HTMLElement element, Object 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
( HTMLElement/Ext.Element 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
( Object event ) : Number
Gets the x coordinate from the event ...

Gets the x coordinate from the event

\n

Parameters

Returns

Ext.EventManager
view source
( Object 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
( Object event ) : Number
Gets the y coordinate from the event ...

Gets the y coordinate from the event

\n

Parameters

Returns

Ext.EventManager
view source
( Object 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
( Object 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
( Object eventName, Object 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
( )
Alias for Ext.EventManager.addListener ...
Ext.EventManager
view source
( Function fn, [Object scope], [Object 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

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
( Function fn, Object scope, Boolean 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

    Options object as passed to Ext.Element.addListener

    \n
Ext.EventManager
view source
( Function fn, Object scope, Boolean 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
( Object element, Object event, Object 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 The )
Prevents the browsers default handling of the event. ...

Prevents the browsers default handling of the event.

\n

Parameters

  • The : Event

    event to prevent the default

    \n
Ext.EventManager
view source
( String/HTMLElement el, [String 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/HTMLElement

    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
( String/HTMLElement 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/HTMLElement

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

    \n
Ext.EventManager
view source
( String/HTMLElement el, String eventName, Function fn, Object 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

Parameters

  • el : String/HTMLElement

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

    \n
  • eventName : String

    The name of the event.

    \n
  • fn : Function

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

    \n
  • scope : Object

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

    \n
Ext.EventManager
view source
( Function fn, Object 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
( Function fn, Object 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
( HTMLElement 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 The )
Stop the event (preventDefault and stopPropagation) ...

Stop the event (preventDefault and stopPropagation)

\n

Parameters

  • The : Event

    event to stop

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

Cancels bubbling of the event.

\n

Parameters

  • The : Event

    event to stop bubbling.

    \n
Ext.EventManager
view source
( )
Alias for Ext.EventManager.removeListener ...
","subclasses":[],"name":"Ext.EventManager","alternateClassNames":[],"inheritdoc":null,"files":[{"href":"EventManager.html#Ext-EventManager","filename":"EventManager.js"}],"html_meta":{},"singleton":true,"id":"class-Ext.EventManager","statics":{"property":[],"event":[],"css_var":[],"method":[],"css_mixin":[],"cfg":[]},"requires":[]});