Added in both of Franck's suggested fixes jQuery.class and "foo" + "bar".split(",").

This commit is contained in:
John Resig 2006-06-22 21:37:18 +00:00
parent 6ae392a4e5
commit 0fd3648d45
2 changed files with 8 additions and 8 deletions

View file

@ -67,9 +67,9 @@ jQuery.prototype.ready = function(f) {
/*
* Bind a number of event-handling functions, dynamically
*/
var e = "blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," +
var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," +
"mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," +
"change,reset,select,submit,keydown,keypress,keyup,abort,error,ready".split(",");
"change,reset,select,submit,keydown,keypress,keyup").split(",");
// Go through all the event names, but make sure that
// it is enclosed properly