History log of /yui3/src/event/js/event-dom.js
Revision Date Author Comments Expand
9c0537f11ab042bb72c3dc295ed3f8c29ba02b8c 09-Nov-2011 Luke Smith <lsmith@yahoo-inc.com>

Wrap onavailable/contentready callback in try/catch Fixes #2531375

c329316f92fdab3b92802fb2182e5b5f543d295e 12-Aug-2011 Dav Glass <davglass@gmail.com>

Fixes #2530913 - Minor doc tweaks Added @main tags to modules that YUIDoc failed to find the proper main module description. No build was done, only modified source files.

/yui3/sandbox/dd/js/constrain.js /yui3/src/autocomplete/js/autocomplete-base.js /yui3/src/charts/js/Chart.js /yui3/src/collection/js/arraylist-add.js /yui3/src/collection/js/arraylist-filter.js /yui3/src/dataschema/js/dataschema-base.js /yui3/src/datasource/js/datasource-local.js /yui3/src/datatable/js/datatable-base.js /yui3/src/datatype/js/datatype-date-format.js /yui3/src/dd/js/constrain.js /yui3/src/dom/js/dom-core.js /yui3/src/dom/js/selector-css2.js event-dom.js /yui3/src/graphics/js/BaseGraphic.js /yui3/src/history/js/history-base.js /yui3/src/io/js/io-base.js /yui3/src/json/js/parse.js /yui3/src/loader/js/loader.js /yui3/src/node/js/node-core.js /yui3/src/querystring/js/querystring-parse.js /yui3/src/recordset/js/recordset-base.js /yui3/src/resize/js/resize-base.js /yui3/src/slider/js/range-slider.js /yui3/src/widget/js/Widget.js /yui3/src/yui/js/yui-array.js
6eae5adc42f886ebacac1f714be3f0c9e4b205c1 05-Aug-2011 Luke Smith <lsmith@yahoo-inc.com>

Remove "Y." from @param and @return types yuidoc doesn't link class types that start with "Y."

88c285485a7919c95181acfc6ed882304dc31187 26-May-2011 Luke Smith <lsmith@yahoo-inc.com>

Fix NPE in detach cleanup. Fixes #2530309

94990dc73055d8c85c07e02bb6742bc70c789467 28-Apr-2011 Luke Smith <lsmith@yahoo-inc.com>

Fix Y.on(type, fn, HTMLElement[], COMPAT) Fixes #2529807 The compat flag was getting popped off the arg list after the first iteration because the iterated call to Y.Event._attach passed the arg list by reference rather than passing a copy of the array.

23b99e294236fd7fd99a3bf6c0a8c52e89f2844c 22-Apr-2011 Luke Smith <lsmith@yahoo-inc.com>

Use ce.detachAll() to trigger cleanup Ticket #2530131 _clean was calling detachAll, which called _delete which called _clean. Remove the call to detachAll from _clean. Any detach will call _clean if there are no more subscribers. Also remove the duplication from Event._unload, which included a js error since detachAll() was called, followed by delete _el_events[domkey][key]

1aaea0dfa7ac4cfd069af68144b0d2314953cf17 21-Apr-2011 Luke Smith <lsmith@yahoo-inc.com>

Delete empty object map of node events. Finish the job for Ticket #2530131 The Y.Env.evt.dom_map object holds an object for each node, an in that, an object for each event. If the last event is removed from a node, also remove the empty dom_map entry for the node.

78691bc863b7f1387a2e7b284fee90a8cf41bcf8 21-Apr-2011 Luke Smith <lsmith@yahoo-inc.com>

Clean up DOM event proxy when fully unsubscribed Fixes #2530131

02b2cc93e6215594d69b7571eb0439213e0aa53c 02-Feb-2011 Adam Moore <adamoore@yahoo-inc.com>

unload listeners were getting removed before executing [fixes #2529828].

2d2498db072d6b37d307e23cd1e49f3ab59abeb4 20-Nov-2010 Matt Sweeney <matt.sweeney@yahoo.com>

move generateID implementation to DOM/Node [fix 2528671]

/yui3/build/dom/dom-base-debug.js /yui3/build/dom/dom-base-min.js /yui3/build/dom/dom-base.js /yui3/build/dom/dom-debug.js /yui3/build/dom/dom-min.js /yui3/build/dom/dom-style-ie-debug.js /yui3/build/dom/dom-style-ie-min.js /yui3/build/dom/dom-style-ie.js /yui3/build/dom/dom.js /yui3/build/event/event-base-debug.js /yui3/build/event/event-base-min.js /yui3/build/event/event-base.js /yui3/build/event/event-debug.js /yui3/build/event/event-min.js /yui3/build/event/event.js /yui3/build/node/node-base-debug.js /yui3/build/node/node-base-min.js /yui3/build/node/node-base.js /yui3/build/node/node-debug.js /yui3/build/node/node-min.js /yui3/build/node/node.js /yui3/sandbox/node/node.html /yui3/src/dom/js/dom-style-ie.js /yui3/src/dom/js/dom.js event-dom.js /yui3/src/node/js/node-imports.js /yui3/src/node/js/nodelist.js /yui3/src/node/tests/node.html
536e9924356edfa79023a29bc75c42bdde8891d7 06-Oct-2010 Adam Moore <adamoore@yahoo-inc.com>

loader rebuild. loader build path filter shouldn't be anything but the supported three.

011173392d3a1a59092095d5a24857134cb16f93 06-Oct-2010 Adam Moore <adamoore@yahoo-inc.com>

Fixed memory leak when adding a listener to an element that is never inserted into the dom [fixes #2529385]. Added a conditional module for IE. Faster event facades.

e3cee6b38c62be71fcb6028e299980eb886a0544 05-Oct-2010 Adam Moore <adamoore@yahoo-inc.com>

Fixed memory leak when adding a listener to an element that is never inserted into the dom [fixes #2529385]. Added a conditional module for IE. Faster event facades.

91e3c1dd314b4425ee5eb6bf62a3448297043b92 15-Sep-2010 Adam Moore <adamoore@yahoo-inc.com>

moved the unload listener removal to the _unload method

18d653c7783da2e23e745feeb92c3d82570c7470 30-Aug-2010 Adam Moore <adamoore@yahoo-inc.com>

Revert "Y.Array.hash() doesn't skip falsy values." This reverts commit f59b981b6346d1216667247834fad809f1c93937.

f59b981b6346d1216667247834fad809f1c93937 30-Aug-2010 Adam Moore <adamoore@yahoo-inc.com>

Y.Array.hash() doesn't skip falsy values.

773ea81b58454b01a90ed69d8a100ce5078404c1 13-Aug-2010 Luke Smith <lsmith@yahoo-inc.com>

Add synth support to purgeElement(type). Enables node.purge(recurse, type) and Y.Event.purgeElement(el, recurse, type)

dfc8c159106cc93da62b5bce7c8e5a9d9d5afb88 06-Apr-2010 Adam Moore <adamoore@yahoo-inc.com>

removed window refs [fixes #2528749].

eea24ae7b751e818f5a88c631ddfa3799e963cd4 03-Apr-2010 Adam Moore <adamoore@yahoo-inc.com>

retab

ef56b4126a1deb54c547f08f1aede9a3541e9a56 01-Apr-2010 Adam Moore <adamoore@yahoo-inc.com>

retab

7e3abdcb3204a2c2a86a236cf923050a154cfd83 03-Mar-2010 Adam Moore <adamoore@yahoo-inc.com>

The event facade type attribute is focus/blur for the synthetic events rather than the native event type it wraps.

111837fe5c14f516f4a15878f9bbaf7bb0091364 26-Feb-2010 Adam Moore <adamoore@yahoo-inc.com>

.

d1f171a81a8b50c0f694f3dd1ea7ccc08e86cf55 26-Feb-2010 Adam Moore <adamoore@yahoo-inc.com>

fixed detach by signature w/ nodelist target [fixes #2528658].

885ce0f657f606e10da68480eab022c7c2c2f747 10-Feb-2010 Adam Moore <adamoore@yahoo-inc.com>

Removed deprecated call from delegate [fixes #2528616]. Refactored purgeElement.

5cbcc8e7f5c3e4ad283e5cb76520840300f81a0a 10-Feb-2010 Adam Moore <adamoore@yahoo-inc.com>

In some cases the target wasn't getting set correctly when bubbling [fixes #2528615].

c8b2e9f045b5805162fe7488edfd8de133a341ba 07-Oct-2009 Adam Moore <adamoore@yahoo-inc.com>

fixed default DOM event context when in compat mode.

df39d9c816a02c79aa6a3436784de5bba0ef7075 24-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

Fixed DOM subscriptions when an empty array is passed as the target. [fixes #2528263].

0e8d3d1b31f9d08c84dafbe3ecc37a25ed9a46dc 22-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

Smarter unload fix.

2c48c11a131e617352b326f99476d4291ce5dfb8 22-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

Fixed broken external 'unload' listeners.

18f590d7221232475fc7c5353e3a88d434c7108d 21-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

Removed attempt to resolve parentNode when the broken FF anonymous div is encountered.

eeaff9ee34c1cb41d8bb5c43f1cda3f4a95f6fbc 17-Sep-2009 Todd Kloots <kloots@yahoo-inc.com>

Updated built-in onAvailable

3641f0baf10c9737e4ac6aac1566bfeaca00eeff 16-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

Node detachAll with no args will purge DOM listeners as well as custom event listeners [fixes #2528247].

bc8660dcb747bedc141ca9061de83f6f32f8018f 16-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

all event listeners configured to return an event handle will always get a single object. Previously, requests that resulted in multiple listeners returned an array. onAvailable and lazy DOM listener detach handles now work as expected. [fixes #2528236]. [fixes #2528239].

21f450f4fd5fd60f951de44878aae015ed0342e3 04-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

minor cleanup

95dacfeca9804d0f204d426a792dca6c457b3682 04-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

Fixed detach by selector

86f93a1b47c3b420a6d9595af8954ec21fb4e413 02-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

purgeElement works for native listeners when type is specified. purgeElement removes the wrapper listener and the wrapper.

05d0664d1cf00f06b4a25a9bda45012e29efe7ef 29-Aug-2009 Todd Kloots <kloots@yahoo-inc.com>

Updated the _createWrapper and _unload methods to fix #2528220

a3f0309be08e898a3389129368861c7d1d286374 24-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

Moved the DOM event wrappers and map to Env.

425f4fb11acb4803598275dccd70f229d7341b7b 21-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

reduce event type parsing, reduce argument juggling for DOM events, get->one, EventTargets protect state if re-augmented with EventTarget.

01af70934b15cc54cf778966dbaa0726efa06748 19-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

re-silenced DOM event wrappers

24b8b9aa57d454bcfd412894c7e69f379729521d 11-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

subscribe -> on

4e0176adfd6a21804a9f09a09cdbdaa014c32283 09-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

Added home, end, and delete keyCode fix for Safari. preventDefault accepts a parameter to specify a returnValue for the event other than false.

aeadb9c6c72fd3591d37c4ad334287d209c309b4 08-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

more API doc fixing

6a3faa9e0e4639febffbd7018ce47b861626d0ba 07-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

Removed obsolete event plugin refs for domready and event-ready

e69255aa5a65f8406ba2fabaf69fe4e1d05daf69 07-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

Y.on accepts a NodeList [fixes #2528072].

30b21a3d9ff745a71ec2a53e31cd2ec9abc68161 06-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

Y.on('click', fn, nodeinstance, context, arg) handles context and args correctly.

cf4df02c7a1942475175fe81b993bc1aa268594c 06-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

API update [fixes #2528144].

5f7ec9435c0f5ff76ce9909a83b5d0ef167767b0 06-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

Handles empty return value from Selector.query [fixes #2528154][fixes #2528115].

d728f384c75841331b0abe5801f7bb02c9e11061 20-Jul-2009 Eric Miraglia <ericmiraglia@yahoo.com>

Updated API doc info to match default settings.

4b8970f2604a05b54c6310c8dc8c9be3a6fbd805 08-Jun-2009 Adam Moore <adamoore@yahoo-inc.com>

Node reference for default DOM event context created during notification instead of during the subscription, and only if needed.

779bb37ad715271b1ea523b377b279f1185d47e9 08-Jun-2009 adamoore <adamoore@feelbuild-mac.corp.yahoo.com>

DOM events uses a Node reference for the context, but this only happens once per event rather than once per subscription.

6b6d9cd9a870b85521e13d2bdba6c13c6910cc19 03-Jun-2009 Todd Kloots <kloots@yahoo-inc.com>

Moved code responsible for creation of Custom Event wrapper into a new method: "_createWrapper"

200bd512e67cae3ffa2a82cdf4ffc11ac73a8058 02-Jun-2009 Adam Moore <adamoore@yahoo-inc.com>

removed log

5dca01b3e9223702077784d350880971273b2a49 02-Jun-2009 Adam Moore <adamoore@yahoo-inc.com>

Added _attach, which has a signature that allows additional configuration to be supplied for DOM events. In particular it allows for bypassing the facade creation where this can create a bottleneck (e.g., mousemove). Changed capture event config and the focus/blur events to use the new setup.

05a2c78cb67034fb5734ca5a004d698ea76d1f99 19-May-2009 Adam Moore <adamoore@yahoo-inc.com>

Added onEnd callback to Get. The payload contains a statusText property to determine the result of the transaction. [fixes #1858618]

9e422bad2cbf496b96dd7cd988f9d1aee6d68eeb 18-May-2009 Adam Moore <adamoore@yahoo-inc.com>

Detecting Node instances so that Y.on('click', fn, noderef) works with load time addEventListener check.

a1a7043253d4ed94d4e31579c37fba456bc6d03f 16-May-2009 Adam Moore <adamoore@yahoo-inc.com>

fixed detach by category string for dom and adapted dom events

918b08f9832633dcbf580984b649169aff501b36 09-May-2009 Adam Moore <adamoore@yahoo-inc.com>

The global window load state is correctly used by listeners when dynamically loading event. Changed dom/event/node metatdata around for better sort order.

97005075c76ed52ae354887411ae249dcc0424d9 07-May-2009 Adam Moore <adamoore@yahoo-inc.com>

_tryPreloadAttach -> _poll

e927be37f3d793f6b3a73cb656f34daf191fda54 07-May-2009 Adam Moore <adamoore@yahoo-inc.com>

The window load listener needed to be moved to the YUI seed file. Added an injected config option to be used when the YUI seed file is dynamically loaded. Removed loader's window load/domready bootstrapper.

caa67ea2f65d6061a950084839d5b06566a168a4 06-May-2009 Adam Moore <adamoore@yahoo-inc.com>

DOM event internals use Selector directly rather than Node. Added a global window load listener to help make sure it fires when dynamically loading the library.

5740f3112d19859eebaba7b3b8b95e6bc14beffb 28-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

Fixed purgeElement/detachAll for DOM events when the event type is specified.

401d3c02d890d39b7a48d94e0a9c1830f8aade42 21-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

Split out custom event and DOM event facades. fixes #2527852

91ff24e65531ce8bf171340d9384182f8c168af3 20-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

event facade prototype properties are protected when mixing in fire payload. fixes bug #2527852

2ba54bd1bd1ac2b4e64e4bb9510dbdbb5450cefc 10-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

needed lenghty check for nodelist

898c07befc663051d363fe0cbeb3940d2920c31d 28-Feb-2009 Adam Moore <adamoore@yahoo-inc.com>

Listeners going through the dom event system assume that the target is the window the instance is configured for if the argument is omitted. Enables shorthand: Y.on('load', fn); [fixes #2525996]

c2bb5f662328393e468fa4b24eb725f4f60f1b27 20-Feb-2009 Adam Moore <adamoore@yahoo-inc.com>

Y.stamp now accepts a readOnly parameter to be used when you are only interested in reading an existing guid rather than creating a new one. Y.stamp defends against stamping items that can't be stamped. Y.Event.purgeElement only reads element guids, it does not create new ones for elements without one. [fixes #2526000]

40cb90a1341c279d57054b0b565a33dfb0ad5e2f 03-Feb-2009 Adam Moore <adamoore@yahoo-inc.com>

refactor

88f849e5723c03ee1476b48a345c791034ab5681 02-Feb-2009 Adam Moore <adamoore@yahoo-inc.com>

First pass: event module split into 'event', 'event-custom', and 'event-simulate'

/yui3/api/queue.js.html /yui3/build/event-custom/event-custom-debug.js /yui3/build/event-custom/event-custom-min.js /yui3/build/event-custom/event-custom.js /yui3/build/event-simulate/event-simulate-debug.js /yui3/build/event-simulate/event-simulate-min.js /yui3/build/event-simulate/event-simulate.js /yui3/build/event/event-debug.js /yui3/build/event/event-min.js /yui3/build/event/event.js /yui3/build/loader/loader-debug.js /yui3/build/loader/loader-min.js /yui3/build/loader/loader.js /yui3/build/yui/yui-debug.js /yui3/build/yui/yui-min.js /yui3/build/yui/yui.js /yui3/src/event-custom/README /yui3/src/event-custom/build.properties /yui3/src/event-custom/build.xml /yui3/src/event-custom/js/event-custom.js /yui3/src/event-custom/js/event-do.js /yui3/src/event-custom/js/event-facade.js /yui3/src/event-custom/js/event-target.js /yui3/src/event-custom/js/event.js /yui3/src/event-simulate/README /yui3/src/event-simulate/build.properties /yui3/src/event-simulate/build.xml /yui3/src/event-simulate/js/event-simulate.js /yui3/src/event/README /yui3/src/event/build.properties event-dom.js event-ready-base.js event-ready.js /yui3/src/yui/js/loader.js
873d065534cc0dc422a278a6c6651f4663d99b7c 15-Jan-2009 Adam Moore <adamoore@yahoo-inc.com>

Fixed API docs regarding the 'context' argument. Added closures around the content of some of the script files to fix local variable assignments.

5ece432c4f3880bc9b74210154e12636755ed86b 14-Jan-2009 Adam Moore <adamoore@yahoo-inc.com>

Tweaks for API doc parser

2cd9bd619e425b8559865531588de8f3b5e67053 14-Jan-2009 Adam Moore <adamoore@yahoo-inc.com>

Added missing source