Cc.winSize undefined问题

如下代码 ,cc.winSize 始终是undefined,甚至我直接赋值,页面也没现实helloworld, 是没加上去 还是其他呢,我使用的是浏览器,还请不吝赐教

var StartLayer = cc.Layer.extend({
    ctor:function () {
        this._super();

//      var size = cc.size(window.screen.width,window.screen.height);
		var size = cc.winSize;
//		var size = cc.size('1280px','678px');
		alert(cc.winSize);
        var helloLabel = new cc.LabelTTF("Hello World", "", 38);
        helloLabel.x = size.width / 2;
        helloLabel.y = size.height / 2;
        this.addChild(helloLabel);

        return true;
    }
});

@panda @pandamicro 知道是怎么回事吗?