cocos2d/cocos2d-html5

Scheduler/Events not called since 3.14.1 in DrawNode derived object

AnotherDayCo opened this issue · 1 comments

Since updating from 3.13.1 to 3.14.1, a DrawNode derived object's Scheduler or Events are not called any more.

It only happens in the html5 version, the android compiled version still works.

This example code does not call update() for me:

var circle = cc.DrawNode.extend ({
    ctor:function () {
        this._super();
        var size = cc.winSize;
        this.drawDot(cc.p(size.width*0.5, size.height*0.5), 100, cc.color(255,0,0));
        this.scheduleUpdate();
        return true;
    },
    
    update :function () { cc.log("Update"); }
});

var HelloWorldLayer = cc.Layer.extend({
    sprite:null,
    ctor:function () {
        this._super();
        var test_circle = new circle();
        this.addChild(test_circle);
        return true;
    }
   
});

var HelloWorldScene = cc.Scene.extend({
    onEnter:function () {
        this._super();
        var layer = new HelloWorldLayer();
        this.addChild(layer);
    }
});

Thanks this should be fixed in 4013fa7