Created
June 14, 2013 19:33
-
-
Save olalonde/5784581 to your computer and use it in GitHub Desktop.
This file contains 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
q = q.where(exp.evaluate({ | |
eql: function (operands) { | |
debugger; | |
var attribute = operands[0], | |
value = operands[1]; | |
return table[attribute].equal(value); | |
}, | |
notEql: function (operands) { | |
debugger; | |
var attribute = operands[0], | |
value = operands[1]; | |
return table[attribute].notEqual(value); | |
}, | |
or: function (operands) { | |
debugger; | |
var first_operand = operands.shift(); | |
return first_operand.or(operands); | |
}, | |
and: function (operands) { | |
debugger; | |
var first_operand = operands.shift(); | |
return first_operand.and(operands); | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment