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
|
@ -188,8 +188,7 @@ var queue = function( elem, type, array ) {
|
|||
var q = jQuery.data( elem, type + "queue" );
|
||||
|
||||
if ( !q || array )
|
||||
q = jQuery.data( elem, type + "queue",
|
||||
array ? jQuery.makeArray(array) : [] );
|
||||
q = jQuery.data( elem, type + "queue", jQuery.makeArray(array) );
|
||||
|
||||
return q;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue