Skip to content

Commit

Permalink
Separate scripts that modify configuration properties, as their order…
Browse files Browse the repository at this point in the history
…ing constraints are unusual.
  • Loading branch information
rictic committed Aug 3, 2017
1 parent c89155b commit 49dbacb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions test/unit/shady-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -306,16 +306,15 @@

<x-compose-lazy-no-dist><span>Child</span></x-compose-lazy-no-dist>


<script>

if (!window.ShadyDOM) {
ShadyDOM = {
patch: function() {},
flush: function() {}
}
}

</script>
<script>
function createPatchedDocumentFragment() {
var frag = document.createDocumentFragment();
return frag;
Expand Down
8 changes: 4 additions & 4 deletions test/unit/shady-dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -802,17 +802,17 @@
<x-outer>
<button>click me</button>
</x-outer>

<script>

'use strict';

if (!window.ShadyDOM) {
ShadyDOM = {
patch: function() {},
flush: function() {}
}
}
</script>
<script>

'use strict';

function createEnabledElement(tag) {
var e = document.createElement(tag);
Expand Down

0 comments on commit 49dbacb

Please sign in to comment.