Bläddra i källkod

HUE-3294 [core] You can now call hueDebug.viewModel() with a target element

Enrico Berti 9 år sedan
förälder
incheckning
b995f96
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      desktop/core/src/desktop/templates/common_header.mako

+ 2 - 2
desktop/core/src/desktop/templates/common_header.mako

@@ -412,8 +412,8 @@ if USE_NEW_EDITOR.get():
       });
 
       window.hueDebug = {
-        viewModel: function () {
-          return ko.dataFor(document.body);
+        viewModel: function (element) {
+          return ko.dataFor(element || document.body);
         }
       }
     });