Throw if ready is set more than once

pull/9/merge
Nikolai Onken 2015-02-11 20:19:23 +00:00
rodzic 79bf780863
commit 4ca996949a
1 zmienionych plików z 3 dodań i 5 usunięć

Wyświetl plik

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