Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change to using superConstructor in examples. Fixes #60

  • Loading branch information...
commit 7cbdf0fd7834cbcb31f0e66770ecfff2149e73b3 1 parent f75a0f1
@petermichaux authored
View
2  doc/quick-start-tutorial-for-the-impatient.html
@@ -922,7 +922,7 @@
<pre><code>maria.ElementView.subclass(checkit, 'TodosAppView', {
constructor: function(model) {
- maria.ElementView.apply(this, arguments);
+ checkit.TodosAppView.superConstructor.apply(this, arguments);
this.appendChild(new checkit.TodosInputView(model));
this.appendChild(new checkit.TodosToolbarView(model));
this.appendChild(new checkit.TodosListView(model));
View
2  eg/checkit/src/js/views/TodosAppView.js
@@ -1,6 +1,6 @@
maria.ElementView.subclass(checkit, 'TodosAppView', {
constructor: function(model) {
- maria.ElementView.apply(this, arguments);
+ checkit.TodosAppView.superConstructor.apply(this, arguments);
this.appendChild(new checkit.TodosInputView(model));
this.appendChild(new checkit.TodosToolbarView(model));
this.appendChild(new checkit.TodosListView(model));
View
2  eg/scrollit/src/js/views/ProductsView.js
@@ -17,7 +17,7 @@ maria.SetView.subclass(scrollit, 'ProductsView', {
this.find('.loading').style.display = this.getModel().isLoading() ? '' : 'none';
},
update: function(evt) {
- maria.SetView.prototype.update.call(this, evt);
+ scrollit.ProductsView.superConstructor.prototype.update.call(this, evt);
this.buildData();
},
getContainerEl: function() {
Please sign in to comment.
Something went wrong with that request. Please try again.