Skip to content

Commit

Permalink
Fix ShadyCSS api change
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed Mar 15, 2017
1 parent e25d89a commit 1144cee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/engine/src/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function execute(host, template, compile) {
w.cache = value;
});

if (global.ShadyCSS) global.ShadyCSS.applyStyle(host);
if (global.ShadyCSS) global.ShadyCSS.styleElement(host);
}

export default function engine(options) {
Expand Down
4 changes: 2 additions & 2 deletions packages/shim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"main": "lib/index.js",
"license": "MIT",
"dependencies": {
"@webcomponents/custom-elements": "github:webcomponents/custom-elements#e08969160aebb5b5baaf8d3321a9602c53ee3c46",
"@webcomponents/custom-elements": "github:webcomponents/custom-elements",
"@webcomponents/shadycss": "github:webcomponents/shadycss",
"@webcomponents/shadydom": "github:webcomponents/shadydom",
"template": "github:webcomponents/template"
"@webcomponents/template": "github:webcomponents/template"
}
}
5 changes: 3 additions & 2 deletions packages/shim/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable global-require */
require('@webcomponents/template');

if (!window.customElements) require('@webcomponents/custom-elements');
if (!document.body.attachShadow) require('@webcomponents/shadydom');

require('@webcomponents/shadycss');
require('template');
require('@webcomponents/shadycss/scoping-shim.min');
require('@webcomponents/shadycss/apply-shim.min');

0 comments on commit 1144cee

Please sign in to comment.