diff --git a/assets/ts_src/ajax_ui.ts b/assets/ts_src/ajax_ui.ts index e7d4e574..85398113 100644 --- a/assets/ts_src/ajax_ui.ts +++ b/assets/ts_src/ajax_ui.ts @@ -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.