Improve all the syntax

This commit is contained in:
Rohan Mitchell
2014-11-06 12:44:57 +11:00
parent 51e768e722
commit e8e5f7033c
2 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ Darkswarm.controller "CheckoutCtrl", ($scope, storage, Checkout, CurrentUser, Cu
$scope.order = Checkout.order # Ordering is important
$scope.secrets = Checkout.secrets
$scope.enabled = if CurrentUser then true else false
$scope.enabled = !!CurrentUser
$scope.purchase = (event)->
event.preventDefault()