},
_getCommand: function(tokens) {
- if(tokens[0] && MongoKeywords.include((tokens[0].value + '').toLowerCase())) {
+ if(tokens[0] && ArrayInclude(MongoKeywords,(tokens[0].value + '').toLowerCase())) {
switch(tokens[0].value.toLowerCase()) {
case 'help':
return this._help;
// Licensed under the MIT licence.
// http://www.opensource.org/licenses/mit-license.php
-Array.prototype.include = function(value) {
+// extending array like this is breaking datatables
+
+/*Array.prototype.include = function(value) {
for(var i=0; i < this.length; i++) {
if(this[i] == value) {
return this[i];
Array.prototype.empty = function() {
return (this.length == 0);
+};*/
+
+function ArrayInclude(arr,value) {
+ for(var i=0; i < arr.length; i++) {
+ if(arr[i] == value) {
+ return arr[i];
+ }
+ }
+ return false;
};
Function.prototype.bind = function() {