Sha256: 995d15cd7a5315f724f647638781b9a5e98bd60c47992573be0f45de6d41b5aa
Contents?: true
Size: 366 Bytes
Versions: 6
Compression:
Stored size: 366 Bytes
Contents
/** * jQuery-like '$' function behavior for RightJS * http://rightjs.org/plugins/jquerysh * * Copyright (C) 2010 Nikolay Nemshilov */ $=function(a){switch(typeof a){case "string":var c=a[0],b=a.substr(1);a=c==="#"&&/^[\w\-]+$/.test(b)?RightJS.$(b):RightJS.$$(a);break;case "function":RightJS.$(document).onReady(a);break;default:a=RightJS.$(a);break}return a};
Version data entries
6 entries across 6 versions & 1 rubygems