문제

How can I disable UI5's diagnostic tool altogether in my application? It's triggered by key combination ALT+Shift+S which stands for letter Ś. I do not run my application with debug=true, so it should be false by default. Unfortunatelly I haven't found answer to my question in sapui5 documentation. I also tried put

sap.m.Support.off();

line, but it didn't work for me.

도움이 되었습니까?

해결책

Looking at the code I think you can disable by setting the productive configuration property to true.

The configuration needs to appear before the bootstrap in the header.

<script type="text/javascript">
  window["sap-ui-config"] = {
    productive: true
  };
</script>

I've created a JSBIN example.

http://jsbin.com/waqiyimo/1/edit

Regards, Jason

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top