Permalink
Browse files

fixed the sample app code, and all tests passing again

  • Loading branch information...
1 parent f26a4ab commit cda627419e5ca838e713420e07971a6f9fe25c43 @derickbailey committed Jan 31, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/javascripts/helpers/sample.backbone.app.js
@@ -62,7 +62,7 @@ AView = Backbone.View.extend({
<input type='tel' id='tel'>\
<input type='search' id='search'>\
");
- this.$(this.el).append(html);
+ this.$el.append(html);
Backbone.ModelBinding.bind(this);
}
});
@@ -84,7 +84,7 @@ AllBindingAttributesView = Backbone.View.extend({
<input type='checkbox' id='v_drivers_license' class='drivers_license' value='yes'>\
<textarea id='v_bio' class='bio'></textarea>\
");
- this.$(this.el).append(html);
+ this.$el.append(html);
Backbone.ModelBinding.bind(this, {all: "class"});
}
@@ -107,7 +107,7 @@ GlobalAllBindingAttributesView = Backbone.View.extend({
<input type='checkbox' id='v_drivers_license' class='drivers_license' value='yes'>\
<textarea id='v_bio' class='bio'></textarea>\
");
- this.$(this.el).append(html);
+ this.$el.append(html);
Backbone.ModelBinding.bind(this);
}
@@ -130,7 +130,7 @@ AnotherView = Backbone.View.extend({
<input type='checkbox' class='drivers_license' value='yes'>\
");
- this.$(this.el).append(html);
+ this.$el.append(html);
Backbone.ModelBinding.bind(this, {
text: 'class',

0 comments on commit cda6274

Please sign in to comment.