4 ms·
Looking at the source, it looks like there's only one line that calls jQuery on line 37 (and I don't think it should be using the short calling convention witho
by tcas 14y ago
Looking at the source, it looks like there's only one line that calls jQuery on line 37 (and I don't think it should be using the short calling convention without a wrapper -- if you rename jQuery to '_' or something else it won't work):
else if($.isNumeric(arg)
There's no native JavaScript equivalent to it if I recall correctly, but there's a bunch of alternatives to it as well.
It should be easy enough to extract out the logic and repackage it. Maybe I'll fork it tomorrow and do the changes myself.
- ville 14y agoI think a good alternative would be just to accept a number. url(1) instead of url('1')
- davecardwell 14y agojQuery simply does this: isNumeric: function( obj ) { return !isNaN( parseFloat(obj) ) && isFinite( obj ); }