From 7fbbc8597b47cae33b4a7b760f29b08f0aa2d01d Mon Sep 17 00:00:00 2001 From: Farruco Sanjurjo Date: Fri, 3 Sep 2010 10:28:17 +0200 Subject: [PATCH] Moved setupArrow method to top class * This is moved here as all extending classes must setup its arrow FEA: ItEr02S03MigracionZK5 --- .../src/main/resources/web/js/ganttz/DependencyComponent.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js b/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js index 52fc7a4bf..bae279f94 100644 --- a/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js +++ b/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js @@ -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();