Category Archives

Archive of posts published in the category: Javascript

Backbone Events Firing Multiple Times

Be careful how you define your Backbone events. ¬†When you are setting up an event such as: this.someCollection.on(‘reset’, this.render, this); you’ll need to be very careful that you define this only once (ie in the constructor of the view … initialize) otherwise there…

Clone Javascript Objects

Working with Javascript for the past few months, I soon learned the objects being passed around in an application were passing objects by reference. ¬†Every change I made to an instance variable that was assigned from another object, I noticed the original reference…

Categories