Skip to content

Commit

Permalink
runtime: fix working with uninitialized mods
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed May 16, 2013
1 parent 2cab950 commit 3e73d25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bemhtml/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ module.exports = function() {
};

function mod(name, value) {
return match.call(this, __$that.mods, __$that.mods[name] === value);
return match.call(this, __$that.mods, function() {
return __$that.mods[name] === value;
});
}

function def() { return mode.call(this, 'default'); };
Expand Down

0 comments on commit 3e73d25

Please sign in to comment.