Skip to content

Instantly share code, notes, and snippets.

@patricksrobertson
Created March 1, 2012 15:15
Show Gist options
  • Save patricksrobertson/1950427 to your computer and use it in GitHub Desktop.
Save patricksrobertson/1950427 to your computer and use it in GitHub Desktop.
dom interaction presenter pattern?
Iora.Presenters.Patients.Edit = function() {
this.initialize.apply(this, arguments);
};
_.extend(Iora.Presenters.Patients.Edit.prototype, function() {
checkSomeBox: function() {
//dom manipulation here
}
});
Iora.Views.Patients.Edit = Iora.Views.CompositeView.extend({
render: function() {
this.checkSomeBox();
}
});
_.extend(Iora.Views.Patient.Edit, Iora.Presenters.Patients.Edit.prototype)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment