Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #191 from 2color/gh-pages

Using a jquery selector to define a view's el doesn't work.
  • Loading branch information...
commit 1de2ea22badc429cccf038b40f708eb21e422fb9 2 parents 1593414 + 15defc8
@addyosmani authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.md
View
2  index.md
@@ -827,7 +827,7 @@ Similar to the previous sections, creating a new view is relatively straight-for
```javascript
var PhotoSearch = Backbone.View.extend({
- el: $('#results'),
+ el: '#results',
render: function( event ){
var compiled_template = _.template( $("#results-template").html() );
this.$el.html( compiled_template(this.model.toJSON()) );
Please sign in to comment.
Something went wrong with that request. Please try again.