I have the following function:
function paper_collapse() {
$(".collapse-card").paperCollapse();
}
This function is always called when the page loads.
$(document).ready(function() {
paper_collapse();
});
Now, through a click
event, I will add some items to the object, and again I will need to call the paper_collapse
function.
It turns out that when I do this, the application behaves contrary to what I need, this is because this same function has already been called once upon page load.
What I want is, remove the function that was called before loading the page.
Is this possible?
Example: $(paper_collapse).unbind();
or .off