I have javascript script code here. When I execute my code as it is then it does not trigger func_two function. But when I change following code in func_one
if (this.remove) {
this.func_two;
}
to this
if (this.remove) {
this.func_two();
}
Then it does trigger second function. But I want to trigger it this way this.func_one. IS it possible to do it this way? How?
()after it. If you want to do it another way, you have to find another programming language that agrees with you.this.collection.each(this.render, this);. this.render is a function which is called without brackets..eachand.eachcalls it internally.