updated install

This commit is contained in:
Baris Soner Usakli
2013-12-04 17:57:51 -05:00
parent 1325e4c501
commit b215dbde19
4 changed files with 90 additions and 43 deletions

View File

@@ -275,9 +275,9 @@ var fs = require('fs'),
}
// Reload meta data
plugins.reload(function() {
Plugins.reload(function() {
// (De)activation Hooks
plugins.fireHook('action:plugin.' + (active ? 'de' : '') + 'activate', id);
Plugins.fireHook('action:plugin.' + (active ? 'de' : '') + 'activate', id);
if (callback) {
callback({
@@ -326,7 +326,9 @@ var fs = require('fs'),
}
Plugins.isActive(config.id, function(err, active) {
if (err) next(new Error('no-active-state'));
if (err) {
next(new Error('no-active-state'));
}
delete config.library;
delete config.hooks;