phpldapadmin/application/media/js/dojo-release-1.7.2/dojox/NodeList/delegate.js
2013-03-19 15:55:33 +11:00

13 lines
322 B
JavaScript

//>>built
define("dojox/NodeList/delegate",["dojo/_base/lang","dojo/query","dojo/_base/NodeList","dojo/NodeList-traverse"],function(_1,_2,_3){
_1.extend(_3,{delegate:function(_4,_5,fn){
return this.connect(_5,function(_6){
var _7=_2(_6.target).closest(_4,this);
if(_7.length){
fn.call(_7[0],_6);
}
});
}});
return _3;
});