Fix updatePermission before loaded might cause duplicate view rendering

This commit is contained in:
Cheng-Han, Wu 2016-06-17 15:58:51 +08:00
parent cca567453d
commit fe249c01f5

View file

@ -1734,7 +1734,7 @@ function emitPermission(_permission) {
function updatePermission(newPermission) { function updatePermission(newPermission) {
if (permission != newPermission) { if (permission != newPermission) {
permission = newPermission; permission = newPermission;
refreshView(); if (loaded) refreshView();
} }
var label = null; var label = null;
var title = null; var title = null;