Removed not used code.

This commit is contained in:
Jan Böhmer 2019-03-26 16:37:57 +01:00
parent 3e54d35fac
commit 32a54293a5

View file

@ -56,10 +56,6 @@ class AjaxUI {
private statePopped : boolean = false;
//Listener savers;
private ajax_complete_listeners : Array<() => void> = [];
private start_listeners : Array<() => void> = [];
public constructor()
{
//Make back in the browser go back in history
@ -68,27 +64,6 @@ class AjaxUI {
//$(document).ajaxComplete(this.onAjaxComplete.bind(this));
}
/**
* Register a function, which will be executed every time, a ajax request was successful.
* Should be used to register functions for elements in the #content div
* @param {() => void} func The function which should be registered.
*/
public addAjaxCompleteAction(func : ()=>void)
{
this.ajax_complete_listeners.push(func);
}
/**
* Register a function, which will be called once, when start() is run.
* Should be used to register functions for elements outside the #content div.
* @param {() => void} func The function which should be registered.
*/
public addStartAction(func: ()=>void)
{
this.start_listeners.push(func);
}
/**
* Starts the ajax ui und execute handlers registered in addStartAction().
* Should be called in a document.ready, after handlers are set.