@@ -87,7 +87,7 @@ cc.ParticleBatchNode = cc.Node.extend(/** @lends cc.ParticleBatchNode# */{
8787 * @param {Number } capacity
8888 * @return {Boolean }
8989 */
90- initWithFile :function ( fileImage , capacity ) {
90+ init :function ( fileImage , capacity ) {
9191 var tex = cc . TextureCache . getInstance ( ) . addImage ( fileImage ) ;
9292 return this . initWithTexture ( tex , capacity ) ;
9393 } ,
@@ -277,7 +277,8 @@ cc.ParticleBatchNode = cc.Node.extend(/** @lends cc.ParticleBatchNode# */{
277277 * @override
278278 * @param {CanvasContext } ctx
279279 */
280- draw :function ( ctx ) {
280+ // XXX: Remove the "XXX_" prefix once WebGL is supported
281+ XXX_draw :function ( ctx ) {
281282 cc . PROFILER_STOP ( "CCParticleBatchNode - draw" ) ;
282283 if ( this . _textureAtlas . getTotalQuads ( ) == 0 ) {
283284 return ;
@@ -336,7 +337,8 @@ cc.ParticleBatchNode = cc.Node.extend(/** @lends cc.ParticleBatchNode# */{
336337
337338 // override visit.
338339 // Don't call visit on it's children
339- visit :function ( ctx ) {
340+ // XXX: Remove the "XXX_" prefix once WebGL is supported
341+ XXX_visit :function ( ctx ) {
340342 // CAREFUL:
341343 // This visit is almost identical to cc.Node#visit
342344 // with the exception that it doesn't call visit on it's children
@@ -499,7 +501,7 @@ cc.ParticleBatchNode.createWithTexture = function (texture, capacity) {
499501 */
500502cc . ParticleBatchNode . create = function ( fileImage , capacity ) {
501503 var ret = new cc . ParticleBatchNode ( ) ;
502- if ( ret && ret . initWithFile ( fileImage , capacity ) ) {
504+ if ( ret && ret . init ( fileImage , capacity ) ) {
503505 return ret ;
504506 }
505507 return null ;
0 commit comments