Enable new plugin

pull/85/head
Ruben Daniels 2015-04-24 19:50:11 +00:00 zatwierdzone przez nightwing
rodzic 1a5dbfb5ec
commit 52980d2c3a
1 zmienionych plików z 12 dodań i 15 usunięć

Wyświetl plik

@ -102,7 +102,6 @@ define(function(require, exports, module) {
// var emit = plugin.getEmitter();
var HASSDK = c9.location.indexOf("sdk=0") === -1;
var ENABLED = c9.location.indexOf("sdk=1") > -1;
var model, datagrid, filterbox;
var btnUninstall, btnReport, btnReadme, btnCloud9, btnReload;
@ -125,7 +124,6 @@ define(function(require, exports, module) {
// updateCommandsFromSettings();
// }, plugin);
if (ENABLED) {
menus.addItemByPath("File/New Plugin", null, 210, plugin);
Object.keys(TEMPLATES).forEach(function(name){
menus.addItemByPath("File/New Plugin/" + TEMPLATES[name], new ui.item({
@ -139,7 +137,6 @@ define(function(require, exports, module) {
setTimeout(reloadModel);
});
}
}
var drawn;
function draw(e) {