Commit e4ddde93 authored by Eugene Shen's avatar Eugene Shen

Fix typo in for loop over select_list

parent 1dd6272a
...@@ -515,7 +515,7 @@ ...@@ -515,7 +515,7 @@
} }
} }
if (this._query.select_list !== undefined) { if (this._query.select_list !== undefined) {
for (i = 0; i < this._query.select_list; i += 1) { for (i = 0; i < this._query.select_list.length; i += 1) {
property = this._query.select_list[i]; property = this._query.select_list[i];
if (select_list.indexOf(property) < 0) { if (select_list.indexOf(property) < 0) {
select_list.push(property); select_list.push(property);
...@@ -574,4 +574,4 @@ ...@@ -574,4 +574,4 @@
}; };
jIO.addStorage('mapping', MappingStorage); jIO.addStorage('mapping', MappingStorage);
}(jIO, RSVP, UriTemplate, SimpleQuery, ComplexQuery, QueryFactory, Query)); }(jIO, RSVP, UriTemplate, SimpleQuery, ComplexQuery, QueryFactory, Query));
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment