mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-30 23:34:09 +02:00
Move edit-design focus/blur events to ready() to avoid errors
This commit is contained in:
parent
f9704d2836
commit
801c9eba2d
@ -292,9 +292,6 @@ enabled(){
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$(window).on("focus", this.onWindowFocusEvent);
|
|
||||||
$(window).on("blur", this.onWindowBlurEvent);
|
|
||||||
|
|
||||||
// css and layout injection
|
// css and layout injection
|
||||||
this.resetDesign = () => {
|
this.resetDesign = () => {
|
||||||
if (this.css){
|
if (this.css){
|
||||||
@ -410,6 +407,10 @@ ready(){
|
|||||||
|
|
||||||
this.onAppReady();
|
this.onAppReady();
|
||||||
|
|
||||||
|
// optimization events
|
||||||
|
$(window).on("focus", this.onWindowFocusEvent);
|
||||||
|
$(window).on("blur", this.onWindowBlurEvent);
|
||||||
|
|
||||||
// layout events
|
// layout events
|
||||||
$(document).on("uiShowActionsMenu", this.uiShowActionsMenuEvent);
|
$(document).on("uiShowActionsMenu", this.uiShowActionsMenuEvent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user