Skip to content

Commit 79b5f06

Browse files
committed
Use Array.prototype.slice for arguments slicing, same as $.widget.bridge does
1 parent 30d468d commit 79b5f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ $.Widget.prototype = {
148148
_init: function() {},
149149

150150
_super: function( method ) {
151-
this.base[ method ].apply( this, $.makeArray( arguments ).slice( 1 ) );
151+
this.base[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ) );
152152
},
153153

154154
destroy: function() {

0 commit comments

Comments
 (0)