Fix syntax

This commit is contained in:
Guillaume Wuip 2014-12-17 13:17:42 +01:00
parent a23fb326d6
commit e97259e3c0
2 changed files with 3 additions and 3 deletions

View file

@ -224,9 +224,9 @@
};
$document.bind('keydown', function ($event) {
if ($event.keyCode == 27) {
if ($event.keyCode === 27) {
$rootScope.sidebar = false;
$rootScope.$digest()
$rootScope.$digest();
}
});

View file

@ -79,7 +79,7 @@
* @return {String} A radom haxa color from `colors`
*/
$scope.color = function () {
return colors[Math.floor(Math.random() * colors.length)]
return colors[Math.floor(Math.random() * colors.length)];
};
}]
};