3781: Fix trigger() usage: second argument is an array of handler args.
[arvados.git] / apps / workbench / app / assets / javascripts / angular_shim.js
index a480eaf8ff3964a9d4eb909c10eaac0747e3cb7c..a5366e3ccba517abf23aee732f074878b1cc5743 100644 (file)
@@ -2,11 +2,11 @@
 // Currently this only works for tabs because they emit an
 // arv:pane:loaded event after updating the DOM.
 
-$(document).on('arv:pane:loaded', function(event, updatedElement) {
-    if (updatedElement) {
-        angular.element(updatedElement).injector().invoke(function($compile) {
-            var scope = angular.element(updatedElement).scope();
-            $compile(updatedElement)(scope);
+$(document).on('arv:pane:loaded', function(event, $updatedElement) {
+    if ($updatedElement) {
+        angular.element($updatedElement).injector().invoke(function($compile) {
+            var scope = angular.element($updatedElement).scope();
+            $compile($updatedElement)(scope);
         });
     }
 });