jquery - Call JavaScript function in AbstractJavaScriptExtension class -
i call javascript function in vaadin. abstractjavascriptextension
. this.callfunction("removenode");
not fire javascript function. bug or doing wrong?
@override public void remove() { super.remove(); fireremovenode(); this.callfunction("removenode"); }
javascript code:
window.vaadin_components_graph_node = function() { var self = this; var state = this.getstate();
...
this.removenode = function() { console.log("call function", "remove node") $(node).remove(); } };
you can't call javascript functions after abstractjavascriptextension removed. try placing javascript call method , don't call remove();