We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45a7057 commit b04a26aCopy full SHA for b04a26a
1 file changed
ClearBlade.js
@@ -801,17 +801,15 @@ if (!window.console) {
801
callback(err, data);
802
} else {
803
var itemArray = [];
804
- for (var i in data) {
+ for (var i = 0; i < data.length; i++) {
805
var newItem = new ClearBlade.Item(data[i], colID);
806
itemArray.push(newItem);
807
}
808
callback(err, itemArray);
809
810
};
811
812
- console.log(this.collection);
813
-
814
- if (this.collection == undefined || this.collection == "") {
+ if (this.collection === undefined || this.collection === "") {
815
throw new Error("No collection was defined");
816
817
reqOptions.endpoint = "api/" + this.collection;
0 commit comments