Merge pull request #489 from ailin-nemui/sidebar-apply-ex

fix $apply exception on showSidebar
This commit is contained in:
Lorenz Hübschle-Schneider 2014-10-26 22:12:25 +01:00
commit 7f69a1cfe5

View file

@ -285,7 +285,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
if (utils.isMobileUi()) { if (utils.isMobileUi()) {
// de-focus the input bar when opening the sidebar on mobile, so that the keyboard goes down // de-focus the input bar when opening the sidebar on mobile, so that the keyboard goes down
_.each(document.getElementsByTagName('textarea'), function(elem) { _.each(document.getElementsByTagName('textarea'), function(elem) {
elem.blur(); $timeout(function(){elem.blur();});
}); });
} }
}; };