Fix typo in the property call
authorJakub Skoczen <jakub@indexdata.dk>
Thu, 18 Oct 2012 11:12:34 +0000 (13:12 +0200)
committerJakub Skoczen <jakub@indexdata.dk>
Thu, 18 Oct 2012 11:12:34 +0000 (13:12 +0200)
cql.js

diff --git a/cql.js b/cql.js
index 3cd9028..1f9b126 100644 (file)
--- a/cql.js
+++ b/cql.js
@@ -143,7 +143,7 @@ CQLBoolean.prototype = {
     toString: function () {
       return (this.left.op ? '(' + this.left + ')' : this.left) + ' ' + 
         this.op.toUpperCase() +
     toString: function () {
       return (this.left.op ? '(' + this.left + ')' : this.left) + ' ' + 
         this.op.toUpperCase() +
-        (this.modifiers.lenght > 0 ? '/' + this.modifiers.join('/') : '') + 
+        (this.modifiers.length > 0 ? '/' + this.modifiers.join('/') : '') + 
         ' ' + (this.right.op ? '(' + this.right + ')' : this.right);;
     },
     toXCQL: function (n) {
         ' ' + (this.right.op ? '(' + this.right + ')' : this.right);;
     },
     toXCQL: function (n) {