mirror of
https://github.com/Azure/setup-kubectl.git
synced 2026-06-23 09:29:27 +08:00
Add node modules and compiled JavaScript from main (#57)
Co-authored-by: Oliver King <oking3@uncc.edu>
This commit is contained in:
committed by
GitHub
parent
d893f27da9
commit
7f7e5ba5ea
+35
@@ -0,0 +1,35 @@
|
||||
'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;
|
||||
Reference in New Issue
Block a user