Skip to content

Commit

Permalink
webfix use strict var definition fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jan 29, 2017
1 parent d5b4828 commit 55efe3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/builder-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ AFRAME.registerComponent('builder-controls', {
appendTo : $('#city')
});

newObject = document.getElementById(newId);
var newObject = document.getElementById(newId);
newObject.setAttribute("position", rounding ? roundedPositionString : originalPositionString); // this does set position

// If this is a "bases" type object, animate the transition to the snapped (rounded) position and rotation
Expand Down Expand Up @@ -231,7 +231,7 @@ AFRAME.registerComponent('builder-controls', {
* Undo - deletes the most recently placed object
*/
onUndo: function () {
previousObject = document.querySelector("#object" + (objectCount - 1));
var previousObject = document.querySelector("#object" + (objectCount - 1));
previousObject.parentNode.removeChild(previousObject);
objectCount -= 1;
if(objectCount == -1) {objectCount = 0};
Expand Down
6 changes: 3 additions & 3 deletions lib/dist/aframe-city-builder.js

Large diffs are not rendered by default.

0 comments on commit 55efe3e

Please sign in to comment.