MCPcopy Create free account
hub / github.com/TruthHun/BookStack / checkElemFn

Function checkElemFn

static/wangEditor/js/wangEditor.js:3799–3808  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3797
3798 // 检查元素是否有 background-color: 内联样式
3799 function checkElemFn(elem) {
3800 var cssText;
3801 if (elem && elem.style && elem.style.cssText != null) {
3802 cssText = elem.style.cssText;
3803 if (cssText && cssText.indexOf('background-color:') >= 0) {
3804 return true;
3805 }
3806 }
3807 return false;
3808 }
3809
3810 // 创建 menu 对象
3811 var menu = new E.Menu({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected