@@ -1894,8 +1894,8 @@ var _initSys = function () {
1894
1894
} ;
1895
1895
_initSys ( ) ;
1896
1896
1897
- delete _tmpCanvas1 ;
1898
- delete _tmpCanvas2 ;
1897
+ delete window . _tmpCanvas1 ;
1898
+ delete window . _tmpCanvas2 ;
1899
1899
1900
1900
//to make sure the cc.log, cc.warn, cc.error and cc.assert would not throw error before init by debugger mode.
1901
1901
cc . log = cc . warn = cc . error = cc . assert = function ( ) {
@@ -1923,9 +1923,9 @@ function _determineRenderType(config) {
1923
1923
cc . _renderType = cc . game . RENDER_TYPE_CANVAS ;
1924
1924
cc . _supportRender = true ;
1925
1925
1926
- if ( userRenderMode === 2 ||
1927
- ( userRenderMode === 0 &&
1928
- shieldOs . indexOf ( cc . sys . os ) === - 1 &&
1926
+ if ( userRenderMode === 2 ||
1927
+ ( userRenderMode === 0 &&
1928
+ shieldOs . indexOf ( cc . sys . os ) === - 1 &&
1929
1929
shieldBrowser . indexOf ( cc . sys . browserType ) === - 1 ) ) {
1930
1930
if ( cc . sys . capabilities [ "opengl" ] ) {
1931
1931
cc . _renderType = cc . game . RENDER_TYPE_WEBGL ;
@@ -2084,17 +2084,17 @@ cc.game = /** @lends cc.game# */{
2084
2084
renderMode : "renderMode" ,
2085
2085
jsList : "jsList"
2086
2086
} ,
2087
-
2087
+
2088
2088
// states
2089
2089
_paused : true , //whether the game is paused
2090
2090
_prepareCalled : false , //whether the prepare function has been called
2091
2091
_prepared : false , //whether the engine has prepared
2092
2092
_rendererInitialized : false ,
2093
2093
2094
2094
_renderContext : null ,
2095
-
2095
+
2096
2096
_intervalId : null , //interval target of main
2097
-
2097
+
2098
2098
_lastTime : null ,
2099
2099
_frameTime : null ,
2100
2100
@@ -2207,7 +2207,7 @@ cc.game = /** @lends cc.game# */{
2207
2207
*/
2208
2208
prepare : function ( cb ) {
2209
2209
var self = this ,
2210
- config = self . config ,
2210
+ config = self . config ,
2211
2211
CONFIG_KEY = self . CONFIG_KEY ;
2212
2212
2213
2213
this . _loadConfig ( ) ;
@@ -2228,10 +2228,10 @@ cc.game = /** @lends cc.game# */{
2228
2228
this . _initRenderer ( config [ CONFIG_KEY . width ] , config [ CONFIG_KEY . height ] ) ;
2229
2229
2230
2230
/**
2231
+ * cc.view is the shared view object.
2231
2232
* @type {cc.EGLView }
2232
2233
* @name cc.view
2233
2234
* @memberof cc
2234
- * cc.view is the shared view object.
2235
2235
*/
2236
2236
cc . view = cc . EGLView . _getInstance ( ) ;
2237
2237
@@ -2244,10 +2244,10 @@ cc.game = /** @lends cc.game# */{
2244
2244
if ( cc . director . setOpenGLView )
2245
2245
cc . director . setOpenGLView ( cc . view ) ;
2246
2246
/**
2247
+ * cc.winSize is the alias object for the size of the current game window.
2247
2248
* @type {cc.Size }
2248
2249
* @name cc.winSize
2249
2250
* @memberof cc
2250
- * cc.winSize is the alias object for the size of the current game window.
2251
2251
*/
2252
2252
cc . winSize = cc . director . getWinSize ( ) ;
2253
2253
@@ -2300,7 +2300,7 @@ cc.game = /** @lends cc.game# */{
2300
2300
cc . game . onStart = onStart ;
2301
2301
}
2302
2302
}
2303
-
2303
+
2304
2304
this . prepare ( cc . game . onStart && cc . game . onStart . bind ( cc . game ) ) ;
2305
2305
} ,
2306
2306
@@ -2377,7 +2377,7 @@ cc.game = /** @lends cc.game# */{
2377
2377
if ( document [ "ccConfig" ] ) {
2378
2378
this . _initConfig ( document [ "ccConfig" ] ) ;
2379
2379
}
2380
- // Load from project.json
2380
+ // Load from project.json
2381
2381
else {
2382
2382
try {
2383
2383
var cocos_script = document . getElementsByTagName ( 'script' ) ;
0 commit comments