Created
February 24, 2014 11:30
-
-
Save anthonybrown/9186767 to your computer and use it in GitHub Desktop.
If you get `options undefined` error, it is because Backbone v.1.1.0 and later no longer automatically attach options passed to the constructor as this.options. This can be fixed by adding an initialized function to AppName.AppLayout = Backbone.View.extend().
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AppName.AppLayout = Backbone.View.extend({ | |
initialize: function(options){ | |
this.options = options || {}; | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment