UNPKG
jqbuild
Version:
latest (0.1.0)
0.1.0
A command line build tool for jQuery plugins.
github.com/cowboy/node-jqbuild
cowboy/node-jqbuild
jqbuild
/
examples
/
debug
/
dist
/
jquery.ba-random.min.js
4 lines
•
292 B
JavaScript
View Raw
1
2
3
4
// jQuery Random - v0.1.0 - 6/13/2011
// http://benalman.com/
// Copyright (c) 2011 Ben Alman; Licensed MIT, GPL
(
function
(
$
){$.fn.
random
=
function
(
a
){
debugger
;
var
b=a?
this
.
filter
(a):
this
,c=b.
length
,d=
Math
.
floor
(
Math
.
random
()*c),e=b.
eq
(d);
console
.
log
(c,d,e);
return
this
.
pushStack
(e)}})(jQuery)