Fix lack of braces on if statements

JavaScript's most popular rack in the grass for maintenance coders…
This commit is contained in:
Chris Adams 2013-06-18 17:55:58 -04:00
parent 643ee211ca
commit d644acd50b

View File

@ -276,19 +276,21 @@ $.Viewer = function( options ) {
case 119://w
case 87://W
case 38://up arrow
if (shiftKey)
if (shiftKey) {
_this.viewport.zoomBy(1.1);
else
} else {
_this.viewport.panBy(new $.Point(0, -0.05));
}
_this.viewport.applyConstraints();
return false;
case 115://s
case 83://S
case 40://down arrow
if (shiftKey)
if (shiftKey) {
_this.viewport.zoomBy(0.9);
else
} else {
_this.viewport.panBy(new $.Point(0, 0.05));
}
_this.viewport.applyConstraints();
return false;
case 97://a