X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent.js;h=e707015c10717c8e82a2206e3ed8a6e7a0e4d0ad;hb=831b15b06c338096c751a90354bbd53241485b12;hp=fdf61baef005f29daf9d59e1304e472d6b44ff61;hpb=a78557472ce1c2cdf7db01a13fcc8591f3fdcfb0;p=jquery.git diff --git a/src/event.js b/src/event.js index fdf61ba..e707015 100644 --- a/src/event.js +++ b/src/event.js @@ -571,9 +571,13 @@ function liveHandler( event ){ } }); + elems.sort(function(a,b) { + return jQuery.data(a.elem, "closest") - jQuery.data(b.elem, "closest"); + }); + jQuery.each(elems, function(){ if ( this.fn.call(this.elem, event, this.fn.data) === false ) - stop = false; + return (stop = false); }); return stop; @@ -637,7 +641,7 @@ function bindReady(){ // If IE and not an iframe // continually check to see if the document is ready - if ( document.documentElement.doScroll && typeof window.frameElement === "undefined" ) (function(){ + if ( document.documentElement.doScroll && window == window.top ) (function(){ if ( jQuery.isReady ) return; try {