Skip to content

Instantly share code, notes, and snippets.

@dburger
Created January 1, 2010 15:11
Show Gist options
  • Save dburger/267134 to your computer and use it in GitHub Desktop.
Save dburger/267134 to your computer and use it in GitHub Desktop.
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