aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-11-18 12:19:32 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-11-18 17:08:40 +0100
commit66f9e12797c16d8fa9078f45401f08f0f200e1bc (patch)
tree5a52c50785e9cef79005d05e995e4257d02ad034 /ui/jquery.ui.widget.js
parente6f55967abdbd7ff6a0717237ab684391a150efc (diff)
downloadjquery-ui-66f9e12797c16d8fa9078f45401f08f0f200e1bc.tar.gz
jquery-ui-66f9e12797c16d8fa9078f45401f08f0f200e1bc.zip
Widget: Remove method argument from _super and _superApply. Was a left-over from first implementation, not necessary anymore.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r--ui/jquery.ui.widget.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 294e321a9..53cde389e 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -62,11 +62,11 @@ $.widget = function( name, base, prototype ) {
$.each( prototype, function( prop, value ) {
if ( $.isFunction( value ) ) {
prototype[ prop ] = (function() {
- var _super = function( method ) {
- return base.prototype[ method ].apply( this, slice.call( arguments, 1 ) );
+ var _super = function() {
+ return base.prototype[ prop ].apply( this, arguments );
};
- var _superApply = function( method, args ) {
- return base.prototype[ method ].apply( this, args );
+ var _superApply = function( args ) {
+ return base.prototype[ prop ].apply( this, args );
};
return function() {
var __super = this._super,