NodeList.js 797 B

123456789101112131415161718192021222324
  1. /*
  2. Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. //>>built
  7. define("dojo/_base/NodeList",["./kernel","../query","./array","./html","../NodeList-dom"],function(_1,_2,_3){
  8. var _4=_2.NodeList,_5=_4.prototype;
  9. _5.connect=_4._adaptAsForEach(function(){
  10. return _1.connect.apply(this,arguments);
  11. });
  12. _5.coords=_4._adaptAsMap(_1.coords);
  13. _4.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];
  14. _3.forEach(_4.events,function(_6){
  15. var _7="on"+_6;
  16. _5[_7]=function(a,b){
  17. return this.connect(_7,a,b);
  18. };
  19. });
  20. _1.NodeList=_4;
  21. return _4;
  22. });