Category Archives: Backbone

Do not initialise your subclass properties in backbone’s extend!

You definitely don’t want to do this, no no no! It’s one of those time when you’re looking at the console log going “what the’”.. Then you realise your mistake and see how obvious it is.. duh! Background – PHP I’m going start this javascript post with some php.. I think years of writing php code has influenced the mistake. Here’s a typical class definition in PHP. class Test { public $items = array(); public…

Read More