Pages

Wednesday, October 14, 2015

Beware: ko.cleanNode also calls $.cleanData

This bit me yesterday when I was debugging a bizarre bug on a personal project. It is such an unexpected side effect that when it hits, you might have to spend lots of time debugging. If I am manually managing data attached to DOM elements, why would knockout mess with them when I am done with knockout?

This issue is already reported and although it has been closed as By Design, there is a documented workaround for users that are impacted.

Federico

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.