Explorar el Código

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

Enrico Berti hace 9 años
padre
commit
b995f96
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);
         }
       }
     });