Merge "Remove deprecated gerrit_addHistoryHook(f) JavaScript function"
This commit is contained in:
@@ -30,7 +30,6 @@ public class ApiGlue {
|
||||
ActionContext.init();
|
||||
HtmlTemplate.init();
|
||||
Plugin.init();
|
||||
addHistoryHook();
|
||||
}
|
||||
|
||||
private static native void init0() /*-{
|
||||
@@ -203,14 +202,6 @@ public class ApiGlue {
|
||||
};
|
||||
}-*/;
|
||||
|
||||
/** Install deprecated {@code gerrit_addHistoryHook()} function. */
|
||||
private static native void addHistoryHook() /*-{
|
||||
$wnd.gerrit_addHistoryHook = function(h) {
|
||||
var p = @com.google.gwt.user.client.Window.Location::getPath()();
|
||||
$wnd.Gerrit.on('history', function(t) { h(p + "#" + t) })
|
||||
};
|
||||
}-*/;
|
||||
|
||||
private static void install(JavaScriptObject cb, Plugin p) throws Exception {
|
||||
try {
|
||||
pluginName = p.name();
|
||||
|
Reference in New Issue
Block a user