Skip to content

Commit

Permalink
adding module exports
Browse files Browse the repository at this point in the history
  • Loading branch information
eavichay committed Jan 4, 2017
1 parent 65aff0c commit 32c23ad
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
8 changes: 7 additions & 1 deletion Slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,4 +440,10 @@ class SlimRepeater extends Slim {
}
}
Slim.tag('slim-repeat', SlimRepeater)
window.SlimRepeater = SlimRepeater
window.SlimRepeater = SlimRepeater
window.Slim = Slim

if (module && module.exports) {
module.exports.Slim = Slim
module.exports.SlimRepeater = SlimRepeater
}
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "slimjs",
"main": "Slim.js",
"version": "2.2.0",
"version": "2.2.1",
"ignore": [
"example",
"components",
Expand Down
2 changes: 1 addition & 1 deletion example/FourInARow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
&& 'import' in document.createElement('link')
&& 'content' in document.createElement('template'))})()) {
let s = "<script type=\"text\/javascript\" " +
"src=\"https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.23/webcomponents.min.js\"" +
"src=\"https ://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.23/webcomponents.min.js\"" +
" > <\/script> "
document.write(s)
}
Expand Down
8 changes: 5 additions & 3 deletions example/tests/bind-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@

get template() {
return `<div>
<div><content></content></div>
<div>${this.cancelTemplate}${this.confirmTemplate}</div>
</div>`
<div>
<content></content>
</div>
<div>${this.cancelTemplate}${this.confirmTemplate}</div>
</div>`
}

get cancelTemplate() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slim-js",
"version": "2.2.0",
"version": "2.2.1",
"description": "Slim web components infrastructure",
"main": "Slim.js",
"scripts": {
Expand Down

0 comments on commit 32c23ad

Please sign in to comment.