mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Migrate core/utils/math.js to ES6 const/let
This commit is contained in:
@@ -48,7 +48,7 @@ Blockly.utils.math.toDegrees = function(angleRadians) {
|
||||
*/
|
||||
Blockly.utils.math.clamp = function(lowerBound, number, upperBound) {
|
||||
if (upperBound < lowerBound) {
|
||||
var temp = upperBound;
|
||||
const temp = upperBound;
|
||||
upperBound = lowerBound;
|
||||
lowerBound = temp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user