$wnd.notifyRmdOutputClosed = $entry(
function(params) {
registry.@org.rstudio.studio.client.rmarkdown.RmdOutput::notifyRmdOutputClosed(Lcom/google/gwt/core/client/JavaScriptObject;)(params);
}
);
<BUG>}-*/;
private void notifyRmdOutputClosed(JavaScriptObject closeParams)</BUG>
{
RmdPreviewParams params = closeParams.cast();
scrollPositions_.put(params.getOutputFile(), params.getScrollPosition());

$wnd.notifyRmdOutputClosed = $entry(
function(params) {
registry.@org.rstudio.studio.client.rmarkdown.RmdOutput::notifyRmdOutputClosed(Lcom/google/gwt/core/client/JavaScriptObject;)(params);
}
);
}-*/;
private final native int getScrollPosition(JavaScriptObject win) /*-{
return win.getRstudioFrameScrollPosition();
}-*/;
private void notifyRmdOutputClosed(JavaScriptObject closeParams)
{
RmdPreviewParams params = closeParams.cast();
scrollPositions_.put(params.getOutputFile(), params.getScrollPosition());
