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

Function _matchesSelectorForIE

static/wangEditor/js/wangEditor.js:720–734  ·  view source on GitHub ↗
(selector)

Source from the content-addressed store, hash-verified

718
719 // matchesSelector hook
720 function _matchesSelectorForIE(selector) {
721 var elem = this;
722 var $elems = $(selector);
723 var result = false;
724
725 // 用jquery查找 selector 所有对象,如果其中有一个和传入 elem 相同,则证明 elem 符合 selector
726 $elems.each(function () {
727 if (this === elem) {
728 result = true;
729 return false;
730 }
731 });
732
733 return result;
734 }
735
736 // 从当前的elem,往上去查找合法标签 如 p head table blockquote ul ol 等
737 E.fn.getLegalTags = function (elem) {

Callers

nothing calls this directly

Calls 1

$Function · 0.50

Tested by

no test coverage detected