Skip to content

Commit 03ce90f

Browse files
committed
Merge branch 'dev'
2 parents 77f7a97 + 6ae20a6 commit 03ce90f

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pattern-lab/styleguidekit-assets-default",
3-
"description": "The assets for the default styleguide mark-up and styles for Pattern Lab.",
3+
"description": "The assets for the default StyleguideKit for Pattern Lab. Contains styles and mark-up for Pattern Lab's front-end.",
44
"keywords": ["mustache", "pattern lab", "styleguide"],
55
"homepage": "http://patternlab.io",
66
"license": "MIT",

dist/js/patternlab-viewer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,6 @@ var codeViewer = {
713713
var templateRendered = templateCompiled.render(patternData);
714714
document.getElementById("sg-code-container").innerHTML = templateRendered;
715715

716-
// dispatch the event
717-
console.log(patternData);
718-
719716
Dispatcher.trigger("codePanelRenderDone", [ patternData ] );
720717

721718
// when clicking on a lineage item change the iframe source
@@ -738,7 +735,7 @@ var codeViewer = {
738735
// request the mustache markup version of the pattern
739736
var m = new XMLHttpRequest();
740737
m.onload = this.saveMustache;
741-
m.open("GET", fileName.replace(/\.html/,".mustache") + "?" + (new Date()).getTime(), true);
738+
m.open("GET", fileName.replace(/\.html/,"."+patternData.patternExtension) + "?" + (new Date()).getTime(), true);
742739
m.send();
743740

744741
// if css is enabled request the css for the pattern

dist/js/patternlab-viewer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/code-viewer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,6 @@ var codeViewer = {
271271
var templateRendered = templateCompiled.render(patternData);
272272
document.getElementById("sg-code-container").innerHTML = templateRendered;
273273

274-
// dispatch the event
275-
console.log(patternData);
276-
277274
Dispatcher.trigger("codePanelRenderDone", [ patternData ] );
278275

279276
// when clicking on a lineage item change the iframe source
@@ -296,7 +293,7 @@ var codeViewer = {
296293
// request the mustache markup version of the pattern
297294
var m = new XMLHttpRequest();
298295
m.onload = this.saveMustache;
299-
m.open("GET", fileName.replace(/\.html/,".mustache") + "?" + (new Date()).getTime(), true);
296+
m.open("GET", fileName.replace(/\.html/,"."+patternData.patternExtension) + "?" + (new Date()).getTime(), true);
300297
m.send();
301298

302299
// if css is enabled request the css for the pattern

0 commit comments

Comments
 (0)