Merge branch 'master' of github.com:jquery/jquery

This commit is contained in:
jeresig 2010-02-27 09:02:18 -05:00
commit 42568db4c4

View file

@ -382,7 +382,8 @@ jQuery.event = {
namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)"); namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)");
} }
var events = jQuery.data(this, "events"), handlers = events[ event.type ]; events = jQuery.data(this, "events");
handlers = (events || {})[ event.type ];
if ( events && handlers ) { if ( events && handlers ) {
// Clone the handlers to prevent manipulation // Clone the handlers to prevent manipulation