Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e04ce45

Browse files
committed
Merge pull request jquerytools#1000 from alibby251/master
Update RangeInput to use jQuery 1.9.1
2 parents a5c3f95 + 5065186 commit e04ce45

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/rangeinput/rangeinput.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
* Since: Mar 2010
1010
* Date: @DATE
1111
*/
12+
13+
var oldFnData = jQuery.fn.data;
14+
15+
jQuery.fn.data = function( name ) {
16+
var ret, evt,
17+
elem = this[0];
18+
19+
// Handles 1.7 which has this behavior and 1.8 which doesn't
20+
if ( elem && name === "events" && arguments.length === 1 ) {
21+
ret = jQuery.data( elem, name );
22+
evt = jQuery._data( elem, name );
23+
}
24+
return oldFnData.apply( this, arguments );
25+
};
26+
1227
(function($) {
1328

1429
$.tools = $.tools || {version: '@VERSION'};

0 commit comments

Comments
 (0)