智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/76/760555ac268489ea00f16694547...

34 lines
879 B

'use strict';
var Mixin = require('../../utils/mixin'),
inherits = require('util').inherits;
var LocationInfoOpenElementStackMixin = module.exports = function (stack, options) {
Mixin.call(this, stack);
this.onItemPop = options.onItemPop;
};
inherits(LocationInfoOpenElementStackMixin, Mixin);
LocationInfoOpenElementStackMixin.prototype._getOverriddenMethods = function (mxn, orig) {
return {
pop: function () {
mxn.onItemPop(this.current);
orig.pop.call(this);
},
popAllUpToHtmlElement: function () {
for (var i = this.stackTop; i > 0; i--)
mxn.onItemPop(this.items[i]);
orig.popAllUpToHtmlElement.call(this);
},
remove: function (element) {
mxn.onItemPop(this.current);
orig.remove.call(this, element);
}
};
};