Skip to content

Adding cleanNode to Knockout static class #240

Closed
dealproc opened this Issue Sep 28, 2012 · 4 comments

3 participants

@dealproc

http://stackoverflow.com/questions/10048485/how-to-clear-remove-observable-bindings-in-knockout-js

Apparently, you're able to call :

ko.cleanNode(element);

to remove Knockout bindings from a particular element. This isn't documented on Knockoutjs.com, etc, but many people document it works. We should add this call to KnockoutJS

@michaelaird

I just had a quick glance in the code. ko.cleanNode is actually a shorthand for ko.utils.domNodeDisposal.cleanNode. would it be better to expose that object in Knockout.Utils ?

@nikhilk
Owner
@dealproc

I have the shorthand, but I made a mistake and put it as part of my main repos for this... how do I do a push to just give you those few lines, or do you want me to cut & paste it in a message, and you can just add it to the main repos @nikhilk ???

@nikhilk
Owner
nikhilk commented Sep 30, 2012

I can copy the lines.

@nikhilk nikhilk closed this in d96257b Sep 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.