`
xiang37
  • 浏览: 414439 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Permission denied to access property 'dom' from a non-chrome context

阅读更多

在做ext的时候,发现在firefor3.5的版本基础会出现这样的错误:Permission denied to access property 'dom' from a non-chrome context的报错。

具体就是网络延迟的问题,不能操作dom接口

google一下,解决办法,覆写ext下的核心元素:element

Ext.override(Ext.Element,{ 
     contains : function(el){ 
         try { 
             return !el ? false : Ext.lib.Dom.isAncestor(this.dom, el.dom ? el.dom : el); 
         } catch(e) { 
             return false; 
         } 
     } 
})
 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics