styling correction

pull/2/head
Dimitris Halatsis 9 years ago
parent 05e6b45124
commit 310e881906
  1. 4
      lib/model.js

@ -622,12 +622,12 @@ comparisonFunctions.$size = function (obj, value) {
return (obj.length == value); return (obj.length == value);
}; };
comparisonFunctions.$elemMatch = function (obj,value) { comparisonFunctions.$elemMatch = function (obj, value) {
if (!util.isArray(obj)) { return false; } if (!util.isArray(obj)) { return false; }
var i = obj.length; var i = obj.length;
var result = false; // Initialize result var result = false; // Initialize result
while (i--) { while (i--) {
if (match(obj[i],value)) { // If match for array element, return true if (match(obj[i], value)) { // If match for array element, return true
result = true; result = true;
break; break;
} }

Loading…
Cancel
Save