Commit a65df44d authored by amandaghassaei's avatar amandaghassaei

fixed missing menu issue

parent 8bd76776
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Created by ghassaei on 5/31/16. * Created by ghassaei on 5/31/16.
*/ */
define(['jquery', 'underscore', 'menuParent', 'elementMechSimPlist', 'elementMechSim', 'text!menus/templates/ElementMechBoundaryCondMenuView.html'], define(['jquery', 'underscore', 'menuParent', 'elementMechSim', 'text!menus/templates/ElementMechBoundaryCondMenuView.html'],
function($, _, MenuParentView, elementMechSimPlist, elementMechSim, template){ function($, _, MenuParentView, elementMechSim, template){
return MenuParentView.extend({ return MenuParentView.extend({
......
...@@ -368,13 +368,11 @@ define(['jquery', 'underscore', 'plist', 'backbone', 'lattice', 'appState', 'tex ...@@ -368,13 +368,11 @@ define(['jquery', 'underscore', 'plist', 'backbone', 'lattice', 'appState', 'tex
if (this.menu) this.menu.destroy(); if (this.menu) this.menu.destroy();
var self = this; var self = this;
console.log("menus/" + tabName.charAt(0).toUpperCase() + tabName.slice(1) + "MenuView"); //console.log("menus/" + tabName.charAt(0).toUpperCase() + tabName.slice(1) + "MenuView");
require(["menus/" + tabName.charAt(0).toUpperCase() + tabName.slice(1) + "MenuView"], function(MenuView){ require(["menus/" + tabName.charAt(0).toUpperCase() + tabName.slice(1) + "MenuView"], function(MenuView){
var data = {model:self.model}; var data = {model:self.model};
if (object) data.myObject = object; if (object) data.myObject = object;
self.menu = new MenuView(data); self.menu = new MenuView(data);
console.log(tabName);
console.log(self.menu);
self.menu.render(); self.menu.render();
}); });
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment