Browse Source

Simplified event names.

tschw 10 years ago
parent
commit
aa4c631b11
1 changed files with 6 additions and 6 deletions
  1. 6 6
      editor/js/libs/app.js

+ 6 - 6
editor/js/libs/app.js

@@ -33,9 +33,9 @@ var APP = {
 			this.setCamera( loader.parse( json.camera ) );
 			this.setCamera( loader.parse( json.camera ) );
 
 
 			events = {
 			events = {
-				appload: [],
-				appstart: [],
-				appstop: [],
+				init: [],
+				start: [],
+				stop: [],
 				keydown: [],
 				keydown: [],
 				keyup: [],
 				keyup: [],
 				mousedown: [],
 				mousedown: [],
@@ -88,7 +88,7 @@ var APP = {
 
 
 			}
 			}
 
 
-			dispatch( events.appload, arguments );
+			dispatch( events.init, arguments );
 
 
 		};
 		};
 
 
@@ -217,7 +217,7 @@ var APP = {
 			document.addEventListener( 'touchend', onDocumentTouchEnd );
 			document.addEventListener( 'touchend', onDocumentTouchEnd );
 			document.addEventListener( 'touchmove', onDocumentTouchMove );
 			document.addEventListener( 'touchmove', onDocumentTouchMove );
 
 
-			dispatch( events.appstart, arguments );
+			dispatch( events.start, arguments );
 
 
 			request = requestAnimationFrame( animate );
 			request = requestAnimationFrame( animate );
 			prevTime = performance.now();
 			prevTime = performance.now();
@@ -234,7 +234,7 @@ var APP = {
 			document.removeEventListener( 'touchend', onDocumentTouchEnd );
 			document.removeEventListener( 'touchend', onDocumentTouchEnd );
 			document.removeEventListener( 'touchmove', onDocumentTouchMove );
 			document.removeEventListener( 'touchmove', onDocumentTouchMove );
 
 
-			dispatch( events.appstop, arguments );
+			dispatch( events.stop, arguments );
 
 
 			cancelAnimationFrame( request );
 			cancelAnimationFrame( request );
 		};
 		};