关于extend

自定义一个类ANode=cc.Class.extend({

});

我想再定义一个类扩展他
Test=ANode.extend({
})
在IOS 下是没问题的

但是 在 HTML5上报错ANode is not defined 有遇到过的么 谢谢