Moved setupArrow method to top class
* This is moved here as all extending classes must setup its arrow FEA: ItEr02S03MigracionZK5
This commit is contained in:
parent
688a2d3564
commit
7fbbc8597b
1 changed files with 5 additions and 1 deletions
|
|
@ -6,6 +6,10 @@ ganttz.DependencyComponentBase = zk.$extends(zk.Widget,{
|
|||
idTaskEnd : null,
|
||||
dependencyType : null
|
||||
},
|
||||
bind_ : function(){
|
||||
this.$supers('bind_', arguments);
|
||||
this.setupArrow_();
|
||||
},
|
||||
draw : function(){throw "draw method must be overwriten by extending classes"},
|
||||
drawArrow_ : function(coordOrig, coordDest){
|
||||
switch(this.getDependencyType)
|
||||
|
|
@ -206,7 +210,7 @@ ganttz.DependencyComponent = zk.$extends(ganttz.DependencyComponentBase,{
|
|||
bind_ : function(){
|
||||
this.$supers('bind_', arguments);
|
||||
this._initializeProperties();
|
||||
this.setupArrow_();
|
||||
//this.setupArrow_();
|
||||
/*maybe move this listener to the $init method*/
|
||||
YAHOO.util.Event.onDOMReady(this.proxy(function() {
|
||||
this.draw();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue