2

From the Rivets.js documentation

Every call to rivets.bind returns a fully data-bound view that you should hold on to for later. You'll need it in order to unbind its listeners using view.unbind().

But what if it is not convenient to hang on to this reference? Must unbind always be called?

If the view's elements have been removed from the document using a method like jQuery'sremove(), will there still be guaranteed memory leaks because Rivets itself will continue to hold a reference to the element or the view?

4

0 回答 0