We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
resetApplyNext
1 parent 480c5ea commit 6460debCopy full SHA for 6460deb
1 file changed
common.blocks/i-bem/i-bem.bemtree
@@ -15,7 +15,8 @@ var undef,
15
r = new RegExp(r, 'g');
16
return function(s) { return ('' + s).replace(r, f); };
17
};
18
- })();
+ })(),
19
+ resetApplyNext = context.resetApplyNext || function() {};
20
21
context.BEMContext = BEMContext;
22
@@ -32,6 +33,7 @@ function BEMContext(context, apply_) {
32
33
this.elem = undef;
34
this.mods = undef;
35
this.elemMods = undef;
36
+ this._resetApplyNext = resetApplyNext;
37
}
38
39
BEMContext.prototype.isArray = isArray;
@@ -152,6 +154,7 @@ match(this._mode === '')(
152
154
def()(function() {
153
155
var content = apply('content');
156
if(content || content === 0) {
157
+ this._resetApplyNext(this);
158
this.ctx.content = apply('', { ctx : content });
159
160
return this.ctx;
0 commit comments