Created
January 1, 2010 15:11
-
-
Save dburger/267134 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
method:function() { | |
// convert the implicit arguments parameter to a real array | |
var args = Array.prototype.call(arguments); | |
// the query object is the first parameter | |
var query = args.shift(); | |
query.state.operator = "||"; | |
// call the repeat method on the query object with the remaining arguments | |
query.repeat.apply(query, args); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment