MCPcopy Index your code
hub / github.com/microsoft/SandDance / getRTL

Function getRTL

docs/app/js/sanddance-app.js:21934–21937  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21932 if (_rtl !== isRTL) _rtl = isRTL;
21933}
21934function getRTL() {
21935 if (_rtl === undefined) _rtl = typeof document !== "undefined" && !!document.documentElement && document.documentElement.getAttribute("dir") === "rtl";
21936 return _rtl;
21937}
21938// This has been split into 2 lines because it was working in Fabric due to the code being transpiled to es5, so this
21939// was converted to var while not working in Fluent that uses babel to transpile the code to be es6-like. Splitting the
21940// logic into two lines, however, allows it to work in both scenarios.

Callers 3

sanddance-app.jsFile · 0.85
getStyleOptionsFunction · 0.85
getRTLSafeKeyCodeFunction · 0.85

Calls 1

setRTLFunction · 0.85

Tested by

no test coverage detected