Revert "Set state before firing event"

This reverts commit b52cca8bc3.
pull/248/head
nightwing 2016-02-03 00:48:19 +04:00
rodzic 2816f5c11a
commit 00b17d9529
1 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -220,14 +220,13 @@ define(function(require, module, exports) {
}
setTimeout(function() {
var wasReady = isReady;
isReady = true;
if (options.testing != 2 && !wasReady) {
// Only fire if we're not testing something else
// Only set the state if we're not testing something else
if (options.testing != 2 && !isReady) {
setState(state, !isReady, function(){
emit.sticky("ready");
});
}
isReady = true;
showTabs = settings.getBool("user/tabs/@show");
toggleButtons(showTabs);