Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define(function () {
- 'use strict';
- function BaseController(id) {
- this.id = id;
- }
- BaseController.prototype = {
- setModel: function (model) {
- this.model = model;
- },
- render: function (bodyDom) {
- bodyDom.prepend('<h1>Controller ' + this.id + ' says "' + this.model.getTitle() + '"</h1>');
- }
- };
- return BaseController;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement