Home | History | Annotate | Download | only in chromevox

Lines Matching refs:isAttached

859 cvox.LibLouis.prototype.attachToElement=function(a){if(this.isAttached())throw Error("instance already attached");var b=document.createElement("embed");b.src=this.nmfPath_;b.type="application/x-nacl";b.width=0;b.height=0;goog.isNull(this.tablesDir_)||b.setAttribute("tablesdir",this.tablesDir_);b.addEventListener("load",goog.bind(this.onInstanceLoad_,this),!1);b.addEventListener("error",goog.bind(this.onInstanceError_,this),!1);b.addEventListener("message",goog.bind(this.onInstanceMessage_,this),!1);
860 a.appendChild(b);this.embedElement_=b;this.instanceState_=cvox.LibLouis.InstanceState.LOADING};cvox.LibLouis.prototype.detach=function(){if(!this.isAttached())throw Error("cannot detach unattached instance");this.embedElement_.parentNode.removeChild(this.embedElement_);this.embedElement_=null;this.instanceState_=cvox.LibLouis.InstanceState.NOT_LOADED};cvox.LibLouis.prototype.isAttached=function(){return null!==this.embedElement_};