@@ -39,13 +39,13 @@ cc.__BrowserGetter = {
39
39
init : function ( ) {
40
40
this . html = document . getElementsByTagName ( "html" ) [ 0 ] ;
41
41
} ,
42
- avaWidth : function ( frame ) {
42
+ availWidth : function ( frame ) {
43
43
if ( ! frame || frame === this . html )
44
44
return window . innerWidth ;
45
45
else
46
46
return frame . clientWidth ;
47
47
} ,
48
- avaHeight : function ( frame ) {
48
+ availHeight : function ( frame ) {
49
49
if ( ! frame || frame === this . html )
50
50
return window . innerHeight ;
51
51
else
@@ -66,10 +66,10 @@ switch(cc.sys.browserType){
66
66
return cc . view . _targetDensityDPI ;
67
67
} ) ;
68
68
case cc . sys . BROWSER_TYPE_UC :
69
- cc . __BrowserGetter . avaWidth = function ( frame ) {
69
+ cc . __BrowserGetter . availWidth = function ( frame ) {
70
70
return frame . clientWidth ;
71
71
} ;
72
- cc . __BrowserGetter . avaHeight = function ( frame ) {
72
+ cc . __BrowserGetter . availHeight = function ( frame ) {
73
73
return frame . clientHeight ;
74
74
} ;
75
75
break ;
@@ -262,8 +262,8 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{
262
262
263
263
_initFrameSize : function ( ) {
264
264
var locFrameSize = this . _frameSize ;
265
- locFrameSize . width = cc . __BrowserGetter . avaWidth ( this . _frame ) ;
266
- locFrameSize . height = cc . __BrowserGetter . avaHeight ( this . _frame ) ;
265
+ locFrameSize . width = cc . __BrowserGetter . availWidth ( this . _frame ) ;
266
+ locFrameSize . height = cc . __BrowserGetter . availHeight ( this . _frame ) ;
267
267
} ,
268
268
269
269
// hack
0 commit comments