4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-AbstractPlugin'>/**
19 </span> * @class Ext.AbstractPlugin
22 * Plugins are injected
24 Ext.define('Ext.AbstractPlugin', {
27 constructor: function(config) {
29 if (!config.cmp && Ext.global.console) {
30 Ext.global.console.warn("Attempted to attach a plugin ");
33 Ext.apply(this, config);
40 <span id='Ext-AbstractPlugin-method-init'> /**
41 </span> * The init method is invoked after initComponent has been run for the
42 * component which we are injecting the plugin into.
47 <span id='Ext-AbstractPlugin-method-destroy'> /**
48 </span> * The destroy method is invoked by the owning Component at the time the Component is being destroyed.
49 * Use this method to clean up an resources.
54 <span id='Ext-AbstractPlugin-method-enable'> /**
55 </span> * Enable the plugin and set the disabled flag to false.
58 this.disabled = false;
61 <span id='Ext-AbstractPlugin-method-disable'> /**
62 </span> * Disable the plugin and set the disabled flag to true.