There is a closing parenthesis missing on line 1897 of index.html. It's a code example in the documentation for using preinitialize on Collections.
Current
class Library extends Backbone.Collection {
preinitialize() {
this.on("add", function() {
console.log("Add model event got fired!");
}; // Missing parenthesis on this line
}
}
Fix
class Library extends Backbone.Collection {
preinitialize() {
this.on("add", function() {
console.log("Add model event got fired!");
});
}
}
There is a closing parenthesis missing on line 1897 of index.html. It's a code example in the documentation for using preinitialize on Collections.
Current
Fix