Skip to content

Scheduler/Events not called since 3.14.1 in DrawNode derived object #3471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AnotherDayCo opened this issue Mar 27, 2017 · 1 comment
Closed

Comments

@AnotherDayCo
Copy link

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);
    }
});
@pandamicro
Copy link
Contributor

Thanks this should be fixed in 4013fa7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants