init
This commit is contained in:
8
include/javascript/yui3/build/plugin/plugin-min.js
vendored
Normal file
8
include/javascript/yui3/build/plugin/plugin-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("plugin",function(B){function A(C){A.superclass.constructor.apply(this,arguments);}A.ATTRS={host:{writeOnce:true}};A.NAME="plugin";A.NS="plugin";B.extend(A,B.Base,{_handles:null,initializer:function(C){this._handles=[];},destructor:function(){if(this._handles){for(var D=0,C=this._handles.length;D<C;D++){this._handles[D].detach();}}},doBefore:function(G,D,C){var E=this.get("host"),F;C=C||this;if(G in E){F=B.Do.before(D,E,G,C);}else{if(E.on){F=E.on(G,D,C);}}this._handles.push(F);return F;},doAfter:function(G,D,C){var E=this.get("host"),F;C=C||this;if(G in E){F=B.Do.after(D,E,G,C);}else{if(E.after){F=E.after(G,D,C);}}this._handles.push(F);return F;},toString:function(){return this.constructor.NAME+"["+this.constructor.NS+"]";}});B.namespace("Plugin").Base=A;},"3.0.0",{requires:["base-base"]});
|
||||
11
include/javascript/yui3/build/plugin/plugin.js
vendored
Normal file
11
include/javascript/yui3/build/plugin/plugin.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('plugin',function(Y){function Plugin(config){Plugin.superclass.constructor.apply(this,arguments);}
|
||||
Plugin.ATTRS={host:{writeOnce:true}};Plugin.NAME='plugin';Plugin.NS='plugin';Y.extend(Plugin,Y.Base,{_handles:null,initializer:function(config){this._handles=[];},destructor:function(){if(this._handles){for(var i=0,l=this._handles.length;i<l;i++){this._handles[i].detach();}}},doBefore:function(sFn,fn,context){var host=this.get("host"),handle;context=context||this;if(sFn in host){handle=Y.Do.before(fn,host,sFn,context);}else if(host.on){handle=host.on(sFn,fn,context);}
|
||||
this._handles.push(handle);return handle;},doAfter:function(sFn,fn,context){var host=this.get("host"),handle;context=context||this;if(sFn in host){handle=Y.Do.after(fn,host,sFn,context);}else if(host.after){handle=host.after(sFn,fn,context);}
|
||||
this._handles.push(handle);return handle;},toString:function(){return this.constructor.NAME+'['+this.constructor.NS+']';}});Y.namespace("Plugin").Base=Plugin;},'3.0.0',{requires:['base-base']});
|
||||
Reference in New Issue
Block a user