Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / examples / ux / Spotlight.js
similarity index 88%
rename from examples/core/Spotlight.js
rename to examples/ux/Spotlight.js
index 9ae9710..3610728 100644 (file)
@@ -1,21 +1,21 @@
-/*\r
- * Ext JS Library 2.2.1\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
-Ext.Spotlight = function(config){\r
+/*!
+ * 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){\r
     Ext.apply(this, config);\r
 }\r
-Ext.Spotlight.prototype = {\r
+Ext.ux.Spotlight.prototype = {\r
     active : false,\r
     animate : true,\r
-    animated : false,\r
     duration: .25,\r
     easing:'easeNone',\r
 \r
+    // private\r
+    animated : false,\r
+\r
     createElements : function(){\r
         var bd = Ext.getBody();\r
 \r
@@ -133,11 +133,14 @@ Ext.Spotlight.prototype = {
     destroy : function(){\r
         this.doHide();\r
         Ext.destroy(\r
-                this.right,\r
-                this.left,\r
-                this.top,\r
-                this.bottom);\r
+            this.right,\r
+            this.left,\r
+            this.top,\r
+            this.bottom);\r
         delete this.el;\r
         delete this.all;\r
     }\r
-};
\ No newline at end of file
+};\r
+\r
+//backwards compat\r
+Ext.Spotlight = Ext.ux.Spotlight;
\ No newline at end of file