3030 * @extends cc.Node
3131 */
3232cc . Layer = cc . Node . extend ( /** @lends cc.Layer# */ {
33+ __type : "cc.Layer" ,
3334 _isBaked : false ,
3435 _bakeSprite : null ,
3536 _bakeRenderCmd : null ,
@@ -65,15 +66,15 @@ cc.Layer = cc.Node.extend(/** @lends cc.Layer# */{
6566 * @function
6667 * @see cc.Layer#unbake
6768 */
68- bake : null ,
69+ // bake: null,
6970
7071 /**
7172 * Cancel the layer to cache all of children to a bake sprite.<br/>
7273 * This is useful only in html5 engine
7374 * @function
7475 * @see cc.Layer#bake
7576 */
76- unbake : null ,
77+ // unbake: null,
7778
7879 _bakeRendering : null ,
7980
@@ -85,9 +86,9 @@ cc.Layer = cc.Node.extend(/** @lends cc.Layer# */{
8586 */
8687 isBaked : function ( ) {
8788 return this . _isBaked ;
88- } ,
89+ }
8990
90- visit : null
91+ // visit: null
9192} ) ;
9293
9394/**
@@ -248,6 +249,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
248249 * var yellowBox = new cc.LayerColor(cc.color(255,255,0,255), 200, 200);
249250 */
250251cc . LayerColor = cc . Layer . extend ( /** @lends cc.LayerColor# */ {
252+ __type : "cc.LayerColor" ,
251253 _blendFunc : null ,
252254 _className : "LayerColor" ,
253255
@@ -317,7 +319,7 @@ cc.LayerColor = cc.Layer.extend(/** @lends cc.LayerColor# */{
317319 * @param {Number } [width=]
318320 * @param {Number } [height=]
319321 */
320- ctor : null ,
322+ // ctor: null,
321323
322324 /**
323325 * Initialization of the layer, please do not call this function by yourself, you should pass the parameters to constructor to initialize a layer
@@ -388,7 +390,7 @@ cc.LayerColor = cc.Layer.extend(/** @lends cc.LayerColor# */{
388390 this . _updateColor ( ) ;
389391 } ,
390392
391- draw : null
393+ // draw: null
392394} ) ;
393395
394396/**
@@ -585,6 +587,7 @@ delete cc._tmp.PrototypeLayerColor;
585587 * @property {Number } compresseInterpolation - Indicate whether or not the interpolation will be compressed
586588 */
587589cc . LayerGradient = cc . LayerColor . extend ( /** @lends cc.LayerGradient# */ {
590+ __type : "cc.LayerGradient" ,
588591 _endColor : null ,
589592 _startOpacity : 255 ,
590593 _endOpacity : 255 ,
@@ -835,6 +838,7 @@ delete cc._tmp.PrototypeLayerGradient;
835838 * var multiLayer = new cc.LayerMultiple(layer1, layer2, layer3);//any number of layers
836839 */
837840cc . LayerMultiplex = cc . Layer . extend ( /** @lends cc.LayerMultiplex# */ {
841+ __type : "cc.LayerMultiplex" ,
838842 _enabledLayer : 0 ,
839843 _layers : null ,
840844 _className : "LayerMultiplex" ,
0 commit comments