GanttPanel static-widget-instance is updated on each instantiation

As a new GanttPanel widget-object is instantiated is created each time the component is created (e.g. when we change perspective) we have to update the
reference to this new object

FEA: ItEr02S03MigracionZK5
This commit is contained in:
Farruco Sanjurjo 2010-08-19 17:36:17 +02:00 committed by Óscar González Fernández
parent d7d89b07e3
commit 133ff9f34a

View file

@ -7,11 +7,7 @@ ganttz.GanttPanel = zk.$extends(zk.Widget,{
},
$init : function(){
this.$super('$init');
if (!this.$class.getInstance()){
this.$class.setInstance(this);
}
else
throw "There's already one GanttPanel";
this.$class.setInstance(this);
},
bind_ : function(evt){
this.$supers('bind_', arguments);