Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Extra trailing commas stop closure-compiler #24

Open
mcd-php opened this issue Mar 16, 2016 · 0 comments
Open

Extra trailing commas stop closure-compiler #24

mcd-php opened this issue Mar 16, 2016 · 0 comments

Comments

@mcd-php
Copy link

mcd-php commented Mar 16, 2016

Don't want to make PR since this file is built by script (?) and real PR will take digging deeper.

Here's the patch:

--- a/scalyr.js 2016-03-16 10:40:08.035063271 +0300
+++ b/scalyr.js 2016-03-16 10:38:26.000000000 +0300
@@ -421,9 +421,9 @@
             return isNull(alwaysEvaluateString) || 
                    !(isStringNonempty(watchExpression) && (watchExpression.indexOf(alwaysEvaluateString) >= 0));
           }, true /* Evaluate any newly added watchers when they are added */);
-        },
+        }
       };
-    },
+    }
   };
 }])
 /**
@@ -441,7 +441,7 @@
   return {
     restrict: 'A',
     link: function(scope, element, attrs) {
-    },
+    }
   };
 })
 /**
@@ -480,7 +480,7 @@
     link: function slyShowLink(scope, element, attr) {
       scope.$watch(attr.slyShow, function ngSlyShowAction(value){
         $animate[toBoolean(value) ? 'removeClass' : 'addClass'](element, 'ng-hide');
-      }, false, 'slyShow'); },
+      }, false, 'slyShow'); }
   };
 }])
 /**
@@ -508,9 +508,9 @@
               return false;
             return true;
           });
-        },
+        }
       };
-    },
+    }
   };
 });

@@ -617,7 +617,7 @@
               // Need to add in an element for each new item in the collection.
               var newElement = {
                   scope: $scope.$new(),
-                  isActiveForRepeat: true,
+                  isActiveForRepeat: true
               };

               gateWatchersForScope(newElement);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant