Skip to content

Commit

Permalink
Fix tslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Dec 22, 2015
1 parent 14b356e commit ec80722
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/engine/Actions/ActionContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ module ex {
endValue: number,
duration: number) => number = ex.EasingFunctions.Linear) {
var i = 0, len = this._queues.length;
for(i; i < len; i++){
for(i; i < len; i++) {
this._queues[i].add(new ex.Internal.Actions.EaseTo(this._actors[i], x, y, duration, easingFcn));
}

return this;

}
Expand Down
4 changes: 2 additions & 2 deletions src/engine/Class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ module ex {
* @param eventName Name of the event to emit
* @param eventObject Data associated with this event
*/
public emit(eventName: string, eventObject?: GameEvent){
this.eventDispatcher.emit(eventName, eventObject)
public emit(eventName: string, eventObject?: GameEvent) {
this.eventDispatcher.emit(eventName, eventObject);
}


Expand Down
13 changes: 8 additions & 5 deletions src/engine/Events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,17 @@ module ex {
* The 'preupdate' event is emitted on actors, scenes, and engine before the update starts.
*/
export class PreUpdateEvent extends GameEvent {
constructor(public engine: Engine, public delta, public target){
constructor(public engine: Engine, public delta, public target) {
super();
}
}

/**
* The 'postupdate' event is emitted on actors, scenes, and engine after the update ends. This is equivalent to the obsolete 'update' event.
* The 'postupdate' event is emitted on actors, scenes, and engine after the update ends. This is equivalent to the obsolete 'update'
* event.
*/
export class PostUpdateEvent extends GameEvent {
constructor(public engine: Engine, public delta, public target){
constructor(public engine: Engine, public delta, public target) {
super();
}
}
Expand Down Expand Up @@ -135,7 +136,8 @@ module ex {
}

/**
* Subscribe event thrown when handlers for events other than subscribe are added. Meta event that is received by [[EventDispatcher|event dispatchers]].
* Subscribe event thrown when handlers for events other than subscribe are added. Meta event that is received by
* [[EventDispatcher|event dispatchers]].
*/
export class SubscribeEvent extends GameEvent {
constructor(public topic: string, public handler: (event?: GameEvent) => void) {
Expand All @@ -144,7 +146,8 @@ module ex {
}

/**
* Unsubscribe event thrown when handlers for events other than unsubscribe are removed. . Meta event that is received by [[EventDispatcher|event dispatchers]].
* Unsubscribe event thrown when handlers for events other than unsubscribe are removed. Meta event that is received by
* [[EventDispatcher|event dispatchers]].
*/
export class UnsubscribeEvent extends GameEvent {
constructor(public topic: string, public handler: (event?: GameEvent) => void) {
Expand Down

0 comments on commit ec80722

Please sign in to comment.