Skip to content

Commit e9dec52

Browse files
committed
making sure splain build is up to date
1 parent d84bb0c commit e9dec52

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

splain.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
285285
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
286286

287287
var Splain = function () {
288-
function Splain() {
288+
function Splain(initialDictionary) {
289289
_classCallCheck(this, Splain);
290290

291291
this.dictionary = new _dictionary2.default();
292-
this.dictionary.addEntry(_defaultDictionaries2.default);
292+
if (initialDictionary) {
293+
this.dictionary.addEntry(initialDictionary);
294+
} else {
295+
this.dictionary.addEntry(_defaultDictionaries2.default);
296+
}
293297
this.config = new _splainConfig2.default();
294298
}
295299

0 commit comments

Comments
 (0)