Throw if ready is set more than once

pull/9/merge
Nikolai Onken 2015-02-15 17:03:03 +00:00
rodzic ef89697731
commit 44a858a49a
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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