DOJO之dojox/layout/ContentPane关闭问题:teardown is not a function
来源:互联网 发布:pd扩大linux硬盘空间 编辑:程序博客网 时间:2024/06/09 14:28
本人初学DOJO,所用版本是DOJO 1.10.1,在写Demo的过程中刚开始遇到了dijit/layout/ContentPane不支持js的问题,经过阅读官方API说明,发现DOJO 1.10中ContentPane对js的扩展支持放到了dijit/layout/ContentPane中,于是把Demo中的dijit替换为dojox,OK,好了,ContentPane可以支持js了。
但是新的问题又来了,当关闭ContentPane时,又报出一个问题“teardown is not a function”,接着就是再打开该标签就没有反映了,首先度娘一下该问题,但是太令人失望了,几乎没有找到该问题的解决办法,没办法只好阅读源码,查找该函数的定义位置,经过匹配找到了该函数,返现函数的命名不一样,区别就在于一个大小写“teardown
”和“tearDown”,于是将dojox/layout/ContentPane模块下的ContentPane.js中的destroy函数中调用的teardown中的d改为大写D的,重新运行Demo,OK,问题解决了。
今天无意中去阅读DOJO的bug记录,发现该问题在DOJO的bug记录中早就提供了该解决办法,只是下载提供的代码中没有更新而已。看来在度娘找不到问题的解决办法的情况下,阅读官方文档(可惜是全英文的)和官方Bug记录确实是一个很好的办法。
0 0
- DOJO之dojox/layout/ContentPane关闭问题:teardown is not a function
- dojox.layout.contentpane 中addonload的bug
- DOJO-dojox.layout.TableContainer(实现表单布局)
- $ is not defined $ is not a function 问题
- dojo之dojox.grid.Grid
- $ is not a function
- $ is not a function
- is not a function
- ajax上传文件附带参数问题之 $(...).dialog is not a function
- $(...).niceScroll is not a function; $... is not a function
- object is not a function
- RVM is not a function
- $(...).scrollpic is not a function
- javascript *** is not a function
- $(...).live is not a function
- $(...).niceScroll is not a function
- $(...).live is not a function
- $(...).modal is not a function
- 对应分析技术-一种强有力的统计分析方法
- max 内核命令
- PHP获取客户端操作系统,浏览器,语言,IP,IP归属地等
- Rest API理解
- 一段程序的人生 第12章:萧何
- DOJO之dojox/layout/ContentPane关闭问题:teardown is not a function
- 几种贴图压缩方式详解
- .net连sql server的连接字符串 配置方式
- 利用__PRETTY_FUNCTION__宏实现服务器消息机制
- 卒業メモリーズ~サヨナラ、あなた。~ 沢井美空
- 最通俗的telnet
- Linux驱动开发(1)之环境搭建小试牛刀
- 【LeetCode】Maximum Product Subarray
- 搞IT的人的社会层次