From: Dan S. <dy...@fu...> - 2000-12-12 14:53:33
|
Yeah we can do that but instead you have to check for null, !x will return true if you try to do slideTo(0,0) therefore it wouldn't do anything. so instead do: if (x==null) x = this.x; if (y==null) y = this.y; Dan On Mon, Dec 11, 2000 at 05:16:26AM +0100, Richard :o wrote: > hi, > In attached example the slideTo and slideBy used to run if one parameter is set to null > can this be included in the new version again? ie: if (!x) x = this.x; > > in the same attachement the slideTo function calls itself in it's own event listener, this no longer works, > is this by design or error? > > Cheers, > Richard :) |