CB-11365 fixed plugin rm issue with emit being undefined

This commit is contained in:
Steve Gill 2016-06-02 11:32:21 -07:00
parent 3a1b4ffcb8
commit 81d6219663

View File

@ -226,7 +226,7 @@ Api.prototype.removePlugin = function (plugin, uninstallOptions) {
.then(function () { .then(function () {
if (plugin.getFrameworks(this.platform).length === 0) return; if (plugin.getFrameworks(this.platform).length === 0) return;
this.events.emit('verbose', 'Updating build files since android plugin contained <framework>'); selfEvents.emit('verbose', 'Updating build files since android plugin contained <framework>');
require('./lib/builders/builders').getBuilder('gradle').prepBuildFiles(); require('./lib/builders/builders').getBuilder('gradle').prepBuildFiles();
}.bind(this)) }.bind(this))
// CB-11022 Return truthy value to prevent running prepare after // CB-11022 Return truthy value to prevent running prepare after