-
Amanda Ghassaei authoredAmanda Ghassaei authored
DiscoveryMenuView.js 747 B
/**
* Created by aghassaei on 6/16/15.
*/
define(['jquery', 'underscore', 'menuParent', 'plist', 'lattice', 'text!menus/templates/DiscoveryMenuView.html'],
function($, _, MenuParentView, plist, lattice, template){
var log = "testing<br/>hello";
return MenuParentView.extend({
events: {
"click #discoveryLogClear": "_clearLog"
},
_initialize: function(){
},
_clearLog: function(e){
e.preventDefault();
log = "";
this.render();
},
_makeTemplateJSON: function(){
return _.extend({log: log}, this.model.toJSON(), plist);
},
template: _.template(template)
});
});