jquery core: simplified the code using the new jQuery.makeArray from [5314] where possible.
This commit is contained in:
parent
ba391eccf9
commit
25f9974cee
3 changed files with 4 additions and 14 deletions
|
@ -160,7 +160,7 @@ jQuery.event = {
|
|||
|
||||
trigger: function(type, data, elem, donative, extra) {
|
||||
// Clone the incoming data, if any
|
||||
data = jQuery.makeArray(data || []);
|
||||
data = jQuery.makeArray(data);
|
||||
|
||||
if ( type.indexOf("!") >= 0 ) {
|
||||
type = type.slice(0, -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue