@@ -62,7 +62,7 @@ acgraph.vector.Stage = function(opt_container, opt_width, opt_height) {
6262 goog . base ( this ) ;
6363
6464 this . renderAsync_ = goog . bind ( this . renderAsync_ , this ) ;
65- this . checkSize_ = goog . bind ( this . checkSize_ , this ) ;
65+ this . checkSize = goog . bind ( this . checkSize , this ) ;
6666
6767 /**
6868 * Event handler of the stage.
@@ -144,7 +144,7 @@ acgraph.vector.Stage = function(opt_container, opt_width, opt_height) {
144144 this . container_ = goog . dom . getElement ( opt_container || null ) ;
145145 if ( this . container_ )
146146 this . updateContainer_ ( ) ;
147- this . checkSize_ ( true , true ) ;
147+ this . checkSize ( true , true ) ;
148148
149149 this . resume ( ) ;
150150} ;
@@ -470,7 +470,7 @@ acgraph.vector.Stage.prototype.domElement = function() {
470470acgraph . vector . Stage . prototype . width = function ( opt_value ) {
471471 if ( goog . isDef ( opt_value ) ) {
472472 if ( this . setWidth_ ( opt_value ) ) {
473- this . checkSize_ ( true ) ;
473+ this . checkSize ( true ) ;
474474 // it seems that we have no need to initialize rendering here
475475 // this.render();
476476 }
@@ -489,7 +489,7 @@ acgraph.vector.Stage.prototype.width = function(opt_value) {
489489acgraph . vector . Stage . prototype . height = function ( opt_value ) {
490490 if ( goog . isDef ( opt_value ) ) {
491491 if ( this . setHeight_ ( opt_value ) ) {
492- this . checkSize_ ( true ) ;
492+ this . checkSize ( true ) ;
493493 // it seems that we have no need to initialize rendering here
494494 // this.render();
495495 }
@@ -509,7 +509,7 @@ acgraph.vector.Stage.prototype.resize = function(width, height) {
509509 var widthChanged = this . setWidth_ ( width ) ;
510510 var heightChanged = this . setHeight_ ( height ) ;
511511 if ( widthChanged || heightChanged ) {
512- this . checkSize_ ( true ) ;
512+ this . checkSize ( true ) ;
513513 // it seems that we have no need to initialize rendering here
514514 // this.render();
515515 }
@@ -529,7 +529,7 @@ acgraph.vector.Stage.prototype.maxResizeDelay = function(opt_value) {
529529 if ( this . maxResizeDelay_ > val && ! isNaN ( this . checkSizeTimer_ ) )
530530 clearTimeout ( this . checkSizeTimer_ ) ;
531531 this . maxResizeDelay_ = val ;
532- this . checkSize_ ( true ) ;
532+ this . checkSize ( true ) ;
533533 }
534534 return this ;
535535 }
@@ -548,7 +548,7 @@ acgraph.vector.Stage.prototype.container = function(opt_value) {
548548 if ( this . container_ != container ) {
549549 this . container_ = container ;
550550 this . updateContainer_ ( ) ;
551- this . checkSize_ ( true ) ;
551+ this . checkSize ( true ) ;
552552 this . render ( ) ;
553553 }
554554 return this ;
@@ -824,9 +824,8 @@ acgraph.vector.Stage.prototype.childClipChanged = goog.nullFunction;
824824 * Method that handles events cached by eventHandler_.
825825 * @param {boolean= } opt_directCall
826826 * @param {boolean= } opt_silent
827- * @private
828827 */
829- acgraph . vector . Stage . prototype . checkSize_ = function ( opt_directCall , opt_silent ) {
828+ acgraph . vector . Stage . prototype . checkSize = function ( opt_directCall , opt_silent ) {
830829 if ( opt_directCall && ! isNaN ( this . checkSizeTimer_ ) )
831830 clearTimeout ( this . checkSizeTimer_ ) ;
832831 this . checkSizeTimer_ = NaN ;
@@ -854,7 +853,7 @@ acgraph.vector.Stage.prototype.checkSize_ = function(opt_directCall, opt_silent)
854853 this . dispatchEvent ( acgraph . vector . Stage . EventType . STAGE_RESIZE ) ;
855854 }
856855 if ( this . container_ && isDynamicSize ) {
857- this . checkSizeTimer_ = setTimeout ( this . checkSize_ , this . maxResizeDelay_ ) ;
856+ this . checkSizeTimer_ = setTimeout ( this . checkSize , this . maxResizeDelay_ ) ;
858857 }
859858} ;
860859
0 commit comments