diff options
Diffstat (limited to 'lib/document-matchers.js')
| -rw-r--r-- | lib/document-matchers.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/document-matchers.js b/lib/document-matchers.js index e681349..a5b5ff5 100644 --- a/lib/document-matchers.js +++ b/lib/document-matchers.js @@ -19,15 +19,15 @@ Matcher.prototype.matches = function(element) { return element.type === this._elementType && (this._styleName === undefined || element.styleName === this._styleName) && (this._listIndex === undefined || isList(element, this._listIndex, this._listIsOrdered)); -} +}; Matcher.prototype.orderedList = function(levelIndex) { return this.list({isOrdered: true, levelIndex: levelIndex}); -} +}; Matcher.prototype.unorderedList = function(levelIndex) { return this.list({isOrdered: false, levelIndex: levelIndex}); -} +}; Matcher.prototype.list = function(options) { this._listIndex = options.levelIndex; |
