From 3645d9fbe414499d68674a752003b48b042460d3 Mon Sep 17 00:00:00 2001 From: Farruco Sanjurjo Date: Fri, 27 Aug 2010 14:44:16 +0200 Subject: [PATCH] Added a method for initializing commonly used properties at DependencyComponent widget-objecs * This properties will be used later by other methods FEA: ItEr02S03MigracionZK5 --- .../resources/web/js/ganttz/DependencyComponent.js | 10 +++++++++- 1 file changed, 9 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 7bc65eec2..6b3d29661 100644 --- a/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js +++ b/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js @@ -6,5 +6,13 @@ ganttz.DependencyComponent = zk.$extends(zk.Widget,{ idTaskEnd : null, dependencyType : null }, - draw : function(){} + $bind : function(){ + this.$supers('$bind', arguments); + this._initializeProperties(); + } + draw : function(){}, + _initializeProperties : function(){ + this._origin = jq('#' + this.getIdTaskOrig()); + this._destination = jq('#' + this.getIdTaskEnd()); + } }) \ No newline at end of file