Skip to content

Commit

Permalink
Fixing more jscompiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed Jan 1, 2013
1 parent 731e8de commit b09b534
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/blk/sim/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ goog.provide('blk.sim.Controller');

goog.require('gf');
goog.require('gf.sim.Entity');

/** @suppress {extraRequire} */
goog.require('gf.input.InputManager');


/**
Expand Down
2 changes: 1 addition & 1 deletion src/blk/sim/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ blk.sim.Inventory.prototype.executeCommand = function(command) {

if (command instanceof blk.sim.commands.SetHeldToolCommand) {
var target = this.getTarget();
var newTool = this.getChild(command.toolId);
var newTool = /** @type {blk.sim.Tool} */ (this.getChild(command.toolId));
if (newTool) {
target.setHeldTool(newTool);
}
Expand Down
2 changes: 1 addition & 1 deletion src/blk/sim/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ if (gf.CLIENT) {

// Queue for rendering
var transformMatrix = renderList.drawModelInstance(
this.modelInstance_);
/** @type {!gf.mdl.RenderInstance} */ (this.modelInstance_));
this.getTransform(transformMatrix);

// TODO(benvanik): render attachments
Expand Down

0 comments on commit b09b534

Please sign in to comment.