This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main div which contains all contents except nav | |
var contentDiv = document.getElementById('content'); | |
//Constructor for different views | |
function View(viewName){ | |
var self = this; | |
console.log(this+ viewName); | |
//view name | |
this.viewName = viewName; | |
//file that has to be loaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = require('self').data; | |
const menuId; | |
const utils = require('api-utils/window/utils'); | |
const recent = utils.getMostRecentBrowserWindow(); | |
/** | |
* opts: an options object that includes a name, an image and a callback. | |
* note: the image can only be a file or data uri, see bug 802003 | |
*/ |