Last post Jan 07, 2010 12:57 PM by FutureGUIs
Jan 06, 2010 03:17 PM|FutureGUIs|LINK
What's the correct way of disposing a control's attached behavior? Say I apply the multiHandleSlider to an input, how can I later dispose it so I can reapply it with different parameters?
Jan 06, 2010 04:23 PM|InfinitiesLoop|LINK
Call dispose() on it :) You could also dispose any controls/behaviors associated with a DOM tree with Sys.Application.disposeElements(parent, childNodesOnly)
Jan 07, 2010 12:57 PM|FutureGUIs|LINK
What was weird was I was originally creating a slider off of a jQuery object and I had to dig into some properties to find the real ajax slider to find the dispose method. Then for some reason the multihandleslider wasn't removing it's elements from the
container I created it in so it was just putting more html into it probably because I was using a div instead of an input for the container, but now that I get the container with Sys.get, it's working better.