From 4e2a5dbe88b84a9b0998905ae3a3936ed560cc8f Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Tue, 23 Sep 2014 23:36:03 +0200 Subject: [PATCH] fix $apply exception on showSidebar --- js/glowingbear.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/glowingbear.js b/js/glowingbear.js index a4940c8..caaf8e9 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -285,7 +285,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', if (utils.isMobileUi()) { // de-focus the input bar when opening the sidebar on mobile, so that the keyboard goes down _.each(document.getElementsByTagName('textarea'), function(elem) { - elem.blur(); + $timeout(function(){elem.blur();}); }); } };