Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / source / widgets / menu / DateItem.js
diff --git a/source/widgets/menu/DateItem.js b/source/widgets/menu/DateItem.js
deleted file mode 100644 (file)
index 5415b37..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/*\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
-/**\r
- * @class Ext.menu.DateItem\r
- * @extends Ext.menu.Adapter\r
- * A menu item that wraps the {@link Ext.DatePicker} component.\r
- * @constructor\r
- * Creates a new DateItem\r
- * @param {Object} config Configuration options\r
- */\r
-Ext.menu.DateItem = function(config){\r
-    Ext.menu.DateItem.superclass.constructor.call(this, new Ext.DatePicker(config), config);\r
-    /** The Ext.DatePicker object @type Ext.DatePicker */\r
-    this.picker = this.component;\r
-    this.addEvents('select');\r
-    \r
-    this.picker.on("render", function(picker){\r
-        picker.getEl().swallowEvent("click");\r
-        picker.container.addClass("x-menu-date-item");\r
-    });\r
-\r
-    this.picker.on("select", this.onSelect, this);\r
-};\r
-\r
-Ext.extend(Ext.menu.DateItem, Ext.menu.Adapter, {\r
-    // private\r
-    onSelect : function(picker, date){\r
-        this.fireEvent("select", this, date, picker);\r
-        Ext.menu.DateItem.superclass.handleClick.call(this);\r
-    }\r
-});
\ No newline at end of file