I like, but I'm curious why this is a jQuery plugin.
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.
isNumeric: function( obj ) {
return !isNaN( parseFloat(obj) ) && isFinite( obj );
} var file = $('a#interesting').url('file')
vs var file = url($('a#interesting'), 'file');