Index: branches/wmf/1.17wmf1/resources/jquery/jquery.js |
— | — | @@ -6242,9 +6242,9 @@ |
6243 | 6243 | var oldData = jQuery.fn.data; |
6244 | 6244 | jQuery.fn.data = function( key, value ) { |
6245 | 6245 | if ( value === undefined ) { |
6246 | | - return this.attr( 'data-' + key ) || oldData( key, value ); |
| 6246 | + return this.attr( 'data-' + key ) || oldData.apply( this, [key, value] ); |
6247 | 6247 | } else { |
6248 | | - return oldData( key, value ); |
| 6248 | + return oldData.apply( this, [key, value] ); |
6249 | 6249 | } |
6250 | 6250 | }; |
6251 | 6251 | |