Guest User

Untitled

a guest
Nov 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. var uiElement = {
  2. compiledTemplate: undefined,
  3. template: undefined,
  4. toHTML: function(newTemplate) {
  5. if (typeof this.compiledTemplate !== 'function' || newTemplate) {
  6. this.compileTemplate(newTemplate || this.template);
  7. }
  8. return this.compiledTemplate(this.toObjectLiteral);
  9. },
  10. compileTemplate: function(newTemplate) {
  11. if (typeof newTemplate === 'string') {
  12. this.template = newTemplate
  13. }
  14. compiledTemplate = _.template(this.template);
  15. }
  16. }
  17. var note = {
  18. instructor: {},
  19. user: {},
  20. course: {},
  21. session: {},
  22. date: undefined,
  23. firstViewDate: undefined,
  24. note: undefined,
  25. domReference: undefined,
  26. showNote: function() {
  27.  
  28. }
  29. }
Add Comment
Please, Sign In to add comment