Skip to content

Instantly share code, notes, and snippets.

@preslavrachev
Created September 18, 2011 21:07
Show Gist options
  • Save preslavrachev/1225547 to your computer and use it in GitHub Desktop.
Save preslavrachev/1225547 to your computer and use it in GitHub Desktop.
Proj.View.CustomView2 = Proj.View.CustomView.extend({
initialize: function(opts) {
//this is the equivalent of super()
Proj.View.CustomView.prototype.initialize.call(this,opts);
//....
},
render: function(opts) {
//this is the equivalent of super()
Proj.View.CustomView.prototype.render.call(this,opts);
//....
},
//.... other methods and attributes
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment