INFRA-132 - js/angular-crm-ui.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-crm-ui.js

index 858c537cab58b82ac1a4468a81b87f3fb42bd526..14e703a04a0642afe93b78db17fc42ecef55d7b1 100644 (file)
           // immediately for initialization. Use retries/retryDelay to initialize such elements.
           var init = function (retries, retryDelay) {
             var input = $('#' + id);
-            if (input.length == 0) {
+            if (input.length === 0) {
               if (retries) {
                 $timeout(function(){
                   init(retries-1, retryDelay);
             angular.forEach(steps, function(otherStep, otherKey) {
               if (otherStep === step) key = otherKey;
             });
-            if (key != null) {
+            if (key !== null) {
               steps.splice(key, 1);
             }
           };