fixes for cocosbuilder

exposing one function in order to make this work easily with cocos builder