Projects > cpp > Issues > Bug #3858

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Pure JS class which is inherited from cc.Class will trigger an irrelevant log.

Bug #3858 [Closed]
dumganhar 2014-01-26 06:39 . Updated almost 3 years ago

Fixed at https://github.com/cocos2d/cocos2d-x/pull/5229.

The log is triggered at js_cocos2d.js

1
2
3
4
5
6
7
    function Class() {
        // All construction is actually done in the init method
        if (!initializing) {
            if (!this.ctor)
                cc.log("No ctor function found, please set `classes_need_extend` section at `ini` file as `tools/tojs/cocos2dx.ini`");
            else

We should check whether object is an pure JS object. If it's pure JS object and not contains ctor property, we should not output this log.

dumganhar 2014-01-27 02:07
  • Description updated (diff)
  • Status changed from New to Closed

Atom PDF

Status:Closed
Start date:2014-01-26
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

0%

Category:js
Target version:3.0-beta2

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.