1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-22 18:15:47 +02:00

Move edit-design focus/blur events to ready() to avoid errors

This commit is contained in:
chylex 2017-05-15 15:15:34 +02:00
parent f9704d2836
commit 801c9eba2d

View File

@ -292,9 +292,6 @@ enabled(){
}
};
$(window).on("focus", this.onWindowFocusEvent);
$(window).on("blur", this.onWindowBlurEvent);
// css and layout injection
this.resetDesign = () => {
if (this.css){
@ -410,6 +407,10 @@ ready(){
this.onAppReady();
// optimization events
$(window).on("focus", this.onWindowFocusEvent);
$(window).on("blur", this.onWindowBlurEvent);
// layout events
$(document).on("uiShowActionsMenu", this.uiShowActionsMenuEvent);