cocos array bug?

var StartLayer = cc.Layer.extend({
name: [],
ctor: function () {
this._super();
console.log(this.name);
var size = cc.winSize;
/**
* 开始按钮
*/
var start = new ccui.Button();
start.x = size.width / 2;
start.y = size.height / 2;
start.setTitleFontSize(80);
start.setTitleText(“Start”);
this.name.push(“name”);
start.addClickEventListener(function () {
cc.director.pushScene(new MainScene());
});
this.addChild(start, 1);
}
});

var StartScene = cc.Scene.extend({
onEnter: function () {
this._super();
var layer = new StartLayer();
this.addChild(layer);
}
});

1.第一次console.log(this.name);是空
2.到达新页面后,再次回来console.log(this.name);居然有数据