Object iteration order

Anne van Kesteren annevk at annevk.nl
Mon Jan 7 05:25:28 PST 2013


In "DOM-land" we're designing new APIs that take objects as arguments.
Unless objects meet the criteria in
https://mail.mozilla.org/pipermail/es-discuss/2010-December/012469.html
invocation of the API method might result in implementation-specific
behavior. See also
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20158

Given the convenience of being able to do something like

  element.on({click: callback1, resize: callback2})

we're probably going to run with it, but I thought I'd give a heads
up. Maybe someone here has a better idea or maybe iteration order will
finally be settled on? :-)


-- 
http://annevankesteren.nl/


More information about the es-discuss mailing list