2 * @class Ext.AbstractPlugin
7 Ext.define('Ext.AbstractPlugin', {
10 constructor: function(config) {
12 if (!config.cmp && Ext.global.console) {
13 Ext.global.console.warn("Attempted to attach a plugin ");
16 Ext.apply(this, config);
24 * The init method is invoked after initComponent has been run for the
25 * component which we are injecting the plugin into.
30 * The destroy method is invoked by the owning Component at the time the Component is being destroyed.
31 * Use this method to clean up an resources.
36 * Enable the plugin and set the disabled flag to false.
39 this.disabled = false;
43 * Disable the plugin and set the disabled flag to true.