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

Commit 8f40a84

Browse files
committed
removing unnecessary postmessage cruft
1 parent c967ab3 commit 8f40a84

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

source/_patternlab-files/styleguide.mustache

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,6 @@
4848
};
4949
}
5050
51-
52-
var els = document.getElementsByClassName("patternLink");
53-
for (i in els) {
54-
els[i].onclick = function() {
55-
if (self != top) {
56-
var targetOrigin = (window.location.protocol == "file:") ? "*" : window.location.protocol+"//"+window.location.host;
57-
parent.postMessage( { "patternpartial": this.getAttribute("data-patternpartial"), "path": "foo" }, targetOrigin);
58-
return false;
59-
}
60-
}
61-
}
62-
6351
// watch the iframe source so that it can be sent back to everyone else.
6452
function receiveIframeMessage(event) {
6553

source/_patternlab-files/viewall.mustache

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,6 @@
4949
};
5050
}
5151
52-
var els = document.getElementsByClassName("patternLink");
53-
for (i in els) {
54-
els[i].onclick = function() {
55-
if (self != top) {
56-
var targetOrigin = (window.location.protocol == "file:") ? "*" : window.location.protocol+"//"+window.location.host;
57-
parent.postMessage( { "patternpartial": this.getAttribute("data-patternpartial"), "path": "foo" }, targetOrigin);
58-
return false;
59-
}
60-
}
61-
}
62-
6352
// watch the iframe source so that it can be sent back to everyone else.
6453
function receiveIframeMessage(event) {
6554

0 commit comments

Comments
 (0)