X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc:/examples/core/Spotlight.js..c930e9176a5a85509c5b0230e2bff5c22a591432:/examples/ux/Spotlight.js diff --git a/examples/core/Spotlight.js b/examples/ux/Spotlight.js similarity index 88% rename from examples/core/Spotlight.js rename to examples/ux/Spotlight.js index 9ae97107..36107284 100644 --- a/examples/core/Spotlight.js +++ b/examples/ux/Spotlight.js @@ -1,21 +1,21 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - -Ext.Spotlight = function(config){ +/*! + * Ext JS Library 3.0.0 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ +Ext.ux.Spotlight = function(config){ Ext.apply(this, config); } -Ext.Spotlight.prototype = { +Ext.ux.Spotlight.prototype = { active : false, animate : true, - animated : false, duration: .25, easing:'easeNone', + // private + animated : false, + createElements : function(){ var bd = Ext.getBody(); @@ -133,11 +133,14 @@ Ext.Spotlight.prototype = { destroy : function(){ this.doHide(); Ext.destroy( - this.right, - this.left, - this.top, - this.bottom); + this.right, + this.left, + this.top, + this.bottom); delete this.el; delete this.all; } -}; \ No newline at end of file +}; + +//backwards compat +Ext.Spotlight = Ext.ux.Spotlight; \ No newline at end of file