private void notifyRemoveRow() {
ScriptableWidget repeater = wrap(delegate.getParent());
Object prop = getProperty(repeater, "onRemoveRow");
if (prop instanceof Function) {
try {
Function fun = (Function)prop;
Object[] args = new Object[1];
Scriptable scope = getTopLevelScope(this);
Scriptable thisObj = scope;
Context cx = Context.getCurrentContext();
args[0] = this;
fun.call(cx, scope, thisObj, args);
} catch (Exception exc) {
throw Context.reportRuntimeError(exc.getMessage());
}
}
}