Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var uiElement = {
- compiledTemplate: undefined,
- template: undefined,
- toHTML: function(newTemplate) {
- if (typeof this.compiledTemplate !== 'function' || newTemplate) {
- this.compileTemplate(newTemplate || this.template);
- }
- return this.compiledTemplate(this.toObjectLiteral);
- },
- compileTemplate: function(newTemplate) {
- if (typeof newTemplate === 'string') {
- this.template = newTemplate
- }
- compiledTemplate = _.template(this.template);
- }
- }
- var note = {
- instructor: {},
- user: {},
- course: {},
- session: {},
- date: undefined,
- firstViewDate: undefined,
- note: undefined,
- domReference: undefined,
- showNote: function() {
- }
- }
Add Comment
Please, Sign In to add comment