@@ -324,7 +324,12 @@ Phaser.ScaleManager = function (game, width, height) {
324324 * @default
325325 * @todo Implement left/top constraints.
326326 */
327- this . windowConstraints = { left : false , top : false , bottom : true , right : true } ;
327+ this . windowConstraints = {
328+ left : false ,
329+ top : false ,
330+ bottom : true ,
331+ right : true
332+ } ;
328333
329334 /**
330335 * Scale mode to be used when not in full screen.
@@ -679,58 +684,6 @@ Phaser.ScaleManager.prototype = {
679684
680685 } ,
681686
682- /**
683- * Start the ScaleManager.
684- *
685- * @method Phaser.ScaleManager#boot
686- * @protected
687- */
688- boot : function ( ) {
689-
690- this . supportsFullScreen = this . game . device . fullscreen && ! this . game . device . cocoonJS ;
691-
692- var _this = this ;
693-
694- this . _orientationChange = function ( event ) {
695- return _this . orientationChange ( event ) ;
696- } ;
697-
698- this . _windowResize = function ( event ) {
699- return _this . windowResize ( event ) ;
700- } ;
701-
702- window . addEventListener ( 'orientationchange' , this . _orientationChange , false ) ;
703- window . addEventListener ( 'resize' , this . _windowResize , false ) ;
704-
705- if ( this . supportsFullScreen )
706- {
707- this . _fullScreenChange = function ( event ) {
708- return _this . fullScreenChange ( event ) ;
709- } ;
710-
711- this . _fullScreenError = function ( event ) {
712- return _this . fullScreenError ( event ) ;
713- } ;
714-
715- document . addEventListener ( 'webkitfullscreenchange' , this . _fullScreenChange , false ) ;
716- document . addEventListener ( 'mozfullscreenchange' , this . _fullScreenChange , false ) ;
717- document . addEventListener ( 'MSFullscreenChange' , this . _fullScreenChange , false ) ;
718- document . addEventListener ( 'fullscreenchange' , this . _fullScreenChange , false ) ;
719-
720- document . addEventListener ( 'webkitfullscreenerror' , this . _fullScreenError , false ) ;
721- document . addEventListener ( 'mozfullscreenerror' , this . _fullScreenError , false ) ;
722- document . addEventListener ( 'MSFullscreenError' , this . _fullScreenError , false ) ;
723- document . addEventListener ( 'fullscreenerror' , this . _fullScreenError , false ) ;
724- }
725-
726- Phaser . Canvas . getOffset ( this . game . canvas , this . offset ) ;
727-
728- this . bounds . setTo ( this . offset . x , this . offset . y , this . width , this . height ) ;
729-
730- this . setGameSize ( this . game . width , this . game . height ) ;
731-
732- } ,
733-
734687 /**
735688 * Set the virtual Game size.
736689 * Use this instead of directly changing `game.width` or `game.height`.
@@ -1858,7 +1811,7 @@ Phaser.ScaleManager.prototype = {
18581811
18591812 if ( typeof width === 'undefined' ) { width = this . width ; }
18601813 if ( typeof height === 'undefined' ) { height = this . height ; }
1861- if ( typeof letterbox === 'undefined' ) { letterbox = false ; }
1814+ if ( typeof letterBox === 'undefined' ) { letterBox = false ; }
18621815
18631816 sprite . scale . set ( 1 ) ;
18641817
0 commit comments