소스 검색

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

Enrico Berti 9 년 전
부모
커밋
b995f96
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
         }
       }
     });