Skip to content

Commit

Permalink
Help: added removeEventListener() call to sample custom bootstrap for…
Browse files Browse the repository at this point in the history
… SDK
  • Loading branch information
joshtynjala committed Apr 13, 2017
1 parent 06f3111 commit 42b8ce9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ package com.example
private function starling_context3DCreateHandler( event:Event ):void
{
//this listener shouldn't be called again if context is lost
this._starling.removeEventListener( Event.CONTEXT3D_CREATE, starling_context3DCreateHandler );
// the context is ready, so the theme can create its textures
new MetalWorksMobileTheme();
Expand Down

0 comments on commit 42b8ce9

Please sign in to comment.