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:
parent
d7d89b07e3
commit
133ff9f34a
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue