Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit d67cfcd

Browse files
committed
cleaning up some comments
1 parent 235519f commit d67cfcd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

source/_patternlab-files/styleguide.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
</div> <!--end #patterns-->
2424
</div><!--End Style Guide Main Content-->
2525
<script>
26-
26+
27+
// alert the iframe parent that the pattern has loaded. for page follow.
2728
if (self != top) {
2829
var targetOrigin = (window.location.protocol == "file:") ? "*" : window.location.protocol+"//"+window.location.host;
2930
parent.postMessage( { "patternpartial": "all", "path": window.location.toString() }, targetOrigin);
3031
}
3132
33+
// if there are clicks on the iframe make sure the nav in the iframe parent closes
3234
var body = document.getElementsByTagName('body');
3335
body[0].onclick = function() {
3436
var targetOrigin = (window.location.protocol == "file:") ? "*" : window.location.protocol+"//"+window.location.host;

source/_patternlab-files/viewall.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
parent.postMessage( { "patternpartial": "{{ patternPartial }}", "path": window.location.toString() }, targetOrigin);
3232
}
3333
34+
// if there are clicks on the iframe make sure the nav in the iframe parent closes
3435
var body = document.getElementsByTagName('body');
3536
body[0].onclick = function() {
3637
var targetOrigin = (window.location.protocol == "file:") ? "*" : window.location.protocol+"//"+window.location.host;

0 commit comments

Comments
 (0)