bearcatjs / bearcat

powered by enhanced javaScript objects
http://bearcatjs.org/
Other
591 stars 110 forks source link

All testcase based on bearcat fail after updating from 0.2.37 to 0.3.15 #131

Closed zj8487 closed 9 years ago

zj8487 commented 9 years ago

_All testcases say an error:_

TypeError: Cannot read property 'start' of undefined

_error is throw from bearcat.start() in every testcase file_

    before(function(done) {
        bearcat.start(function() {
            done();
        });
    });

_I noticed that the Bearcat.createApp has been changed_

Bearcat.createApp = function(configLocations, opts) {
    if (this.state >= STATE_INITED) {
        return;
    }

_I tried change the code as follow but it fails too._

Bearcat.createApp = function(configLocations, opts) {
    if (this.state >= STATE_INITED) {
        return Bearcat;
    }

_you can use bearcat-dao to test after updating the bearcat_

zj8487 commented 9 years ago

okay, 就是说如果不配置BEARCAT_FUNCTION_STRING, 全局对象是不支持在构造函数中修改?

这个我倒是可以修改成init中构造初始化。

建议:出个bearcat最佳实践,把上面的例子作一个错误使用case

fantasyni commented 9 years ago

哈哈,最佳实践,我加个专题

zj8487 commented 9 years ago

辛苦了,让你连续发了几个版本。

bellacc commented 8 years ago

Hey, what's up? Why could I get you guys so many disscuss emails?

在 2015-02-14 09:37:34,"zj8487" notifications@github.com 写道:

辛苦了,让你连续发了几个版本。

— Reply to this email directly or view it on GitHub.