Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AbstractController(model, view) {
- if(model && view) {
- this._model = model;
- this._view = view;
- this._view.bind(this.callback.bind(this));
- }
- };
- AbstractController.prototype.setModelField = function(modelField, modelValue) {
- this._model.setField(modelField, modelValue);
- };
- AbstractController.prototype.getModelField = function(modelField) {
- this._model.getField(modelField);
- };
- AbstractController.prototype.callback = function () {
- throw new Error('Not implemented!');
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement