X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc:/examples/portal/Portal.js..c930e9176a5a85509c5b0230e2bff5c22a591432:/examples/ux/Portal.js?ds=sidebyside diff --git a/examples/portal/Portal.js b/examples/ux/Portal.js similarity index 92% rename from examples/portal/Portal.js rename to examples/ux/Portal.js index 01be4954..2f788d56 100644 --- a/examples/portal/Portal.js +++ b/examples/ux/Portal.js @@ -1,16 +1,14 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - +/*! + * Ext JS Library 3.0.0 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ Ext.ux.Portal = Ext.extend(Ext.Panel, { - layout: 'column', - autoScroll:true, - cls:'x-portal', - defaultType: 'portalcolumn', + layout : 'column', + autoScroll : true, + cls : 'x-portal', + defaultType : 'portalcolumn', initComponent : function(){ Ext.ux.Portal.superclass.initComponent.call(this); @@ -28,13 +26,14 @@ Ext.ux.Portal = Ext.extend(Ext.Panel, { this.dd = new Ext.ux.Portal.DropZone(this, this.dropConfig); }, - beforeDestroy: function() { + beforeDestroy : function() { if(this.dd){ this.dd.unreg(); } Ext.ux.Portal.superclass.beforeDestroy.call(this); } }); + Ext.reg('portal', Ext.ux.Portal);