Skip to content

Commit

Permalink
fix: use the dust context which is passed in arg (#146)
Browse files Browse the repository at this point in the history
* fix: add registerWith property to dustjs-helpers which has factory function

appears to be needed for node 8 support
  • Loading branch information
kumarrishav authored and jimmyhchan committed Dec 9, 2017
1 parent 3a6c446 commit 09181af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
package-lock.json
*.DS_Store
.*.sw[a-z]
*.un~
Expand All @@ -8,4 +9,4 @@ Session.vim
_SpecRunner.html
tmp
.idea
*.iml
*.iml
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
language: node_js
node_js:
- "0.12"
- "iojs"
- "4"
- "6"
- "8"
matrix:
include:
- node_js: "0.10"
Expand Down
1 change: 1 addition & 0 deletions lib/dust-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
define(['dust.core'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('dustjs-linkedin'));
module.exports.registerWith = factory;
} else {
factory(root.dust);
}
Expand Down

0 comments on commit 09181af

Please sign in to comment.