Don't throw when ready is called twice

pull/9/merge
Nikolai Onken 2015-02-12 14:04:04 +00:00
rodzic 24ac3fa3b3
commit e6e4db020e
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -338,9 +338,8 @@ define(function(require, module, exports) {
*/
get ready(){ return ready; },
set ready(v) {
if (ready) throw new Error("Permission Denied");
if (!ready) emit.sticky("ready");
ready = true;
emit.sticky("ready");
},
/**
* The tooltip displayed when hovering over the tab button