(elementType, options)
| 3025 | } |
| 3026 | |
| 3027 | function Matcher(elementType, options) { |
| 3028 | options = options || {}; |
| 3029 | this._elementType = elementType; |
| 3030 | this._styleId = options.styleId; |
| 3031 | this._styleName = options.styleName; |
| 3032 | if (options.list) { |
| 3033 | this._listIndex = options.list.levelIndex; |
| 3034 | this._listIsOrdered = options.list.isOrdered; |
| 3035 | } |
| 3036 | } |
| 3037 | |
| 3038 | Matcher.prototype.matches = function(element) { |
| 3039 | return element.type === this._elementType && |
nothing calls this directly
no outgoing calls
no test coverage detected