From 99c1d9af689e5325f3cf535c4007b3aeb8325229 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 10 Jan 2023 14:54:04 +0100 Subject: Update - This is an automated commit --- .../location-info/open-element-stack-mixin.js | 35 ---------------------- 1 file changed, 35 deletions(-) delete mode 100644 alarm/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js (limited to 'alarm/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js') diff --git a/alarm/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js b/alarm/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js deleted file mode 100644 index 765fe77..0000000 --- a/alarm/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -const Mixin = require('../../utils/mixin'); - -class LocationInfoOpenElementStackMixin extends Mixin { - constructor(stack, opts) { - super(stack); - - this.onItemPop = opts.onItemPop; - } - - _getOverriddenMethods(mxn, orig) { - return { - pop() { - mxn.onItemPop(this.current); - orig.pop.call(this); - }, - - popAllUpToHtmlElement() { - for (let i = this.stackTop; i > 0; i--) { - mxn.onItemPop(this.items[i]); - } - - orig.popAllUpToHtmlElement.call(this); - }, - - remove(element) { - mxn.onItemPop(this.current); - orig.remove.call(this, element); - } - }; - } -} - -module.exports = LocationInfoOpenElementStackMixin; -- cgit