INFRA-132 - js/angular-crmMailing.js - Cleanup empty checks to satisfy jshint
authorTim Otten <totten@civicrm.org>
Mon, 5 Jan 2015 21:53:32 +0000 (13:53 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 5 Jan 2015 21:53:32 +0000 (13:53 -0800)
js/angular-crmMailing.js

index 239475862cc00a82c4fb3909bee6e9ae40372de3..dfeffb355597ee21ef24b6376b9901a889611b19 100644 (file)
           });
           break;
         case 'unscheduled':
+          /* falls through */
         default:
           window.location = CRM.url('civicrm/mailing/browse/unscheduled', {
             reset: 1,
     $scope.recipients = null;
     $scope.getRecipientsEstimate = function () {
       var ts = $scope.ts;
-      if ($scope.recipients == null) {
+      if ($scope.recipients === null) {
         return ts('(Estimating)');
       }
-      if ($scope.recipients.length == 0) {
+      if ($scope.recipients.length === 0) {
         return ts('No recipients');
       }
-      if ($scope.recipients.length == 1) {
+      if ($scope.recipients.length === 1) {
         return ts('~1 recipient');
       }
       if (RECIPIENTS_PREVIEW_LIMIT > 0 && $scope.recipients.length >= RECIPIENTS_PREVIEW_LIMIT) {