mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-24 14:25:00 +00:00
Fix syntax
This commit is contained in:
parent
a23fb326d6
commit
e97259e3c0
2 changed files with 3 additions and 3 deletions
|
@ -224,9 +224,9 @@
|
|||
};
|
||||
|
||||
$document.bind('keydown', function ($event) {
|
||||
if ($event.keyCode == 27) {
|
||||
if ($event.keyCode === 27) {
|
||||
$rootScope.sidebar = false;
|
||||
$rootScope.$digest()
|
||||
$rootScope.$digest();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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)];
|
||||
};
|
||||
}]
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue