Skip to content

Instantly share code, notes, and snippets.

View darkowlzz's full-sized avatar

Sunny darkowlzz

  • ‏‏‏‏‎ ‎
View GitHub Profile
// 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
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
*/