Created
March 11, 2016 17:26
-
-
Save julesbou/6616f0c0f99510df1ec2 to your computer and use it in GitHub Desktop.
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
Backbone.View.extend({ | |
initialize: function() { | |
// obviously .foo element do not yet exists because view is not rendered | |
// this line will throw an error | |
this.$(‘.foo’).text(‘foo-bar-baz’); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment