You could make this shorter by just doing `$timeout(hideToast, scope.delay || 3000);`