Bug Tracker

Ticket #6953: z

File z, 514 bytes (added by jpritikin, 11 years ago)

patch against jquery 1.4.2

Line 
1--- jquery.tools.min.js 2010-08-26 12:21:16.975929412 -0700
2+++ jquery.tools.min.js.orig    2010-08-26 12:21:10.915930547 -0700
3@@ -1917,7 +1917,8 @@
4                        namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)");
5                }
6 
7-               var events = jQuery.data(this, "events"), handlers = events[ event.type ];
8+               events = jQuery.data(this, "events") || {};
9+                handlers = events[ event.type ];
10 
11                if ( events && handlers ) {
12                        // Clone the handlers to prevent manipulation