samedi 25 avril 2015

Trouble running an Observer Pattern example

I am trying to reproduce the Observer Pattern example given in the book Learning JavaScript Design Patterns but I get this error in the extend function:

enter image description here

I am using the code in the book starting below this line:

First, let's model the list of dependent Observers a subject may have:

I have set up the code in a fiddle and I'd like to understand why I'm getting the error.

Aucun commentaire:

Enregistrer un commentaire