Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 5c7fa15

Browse files
committed
[DEV] Refactor exportContent to export_
1 parent 03a7790 commit 5c7fa15

File tree

15 files changed

+34
-34
lines changed

15 files changed

+34
-34
lines changed

analysis.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11397,9 +11397,9 @@
1139711397
"params": []
1139811398
},
1139911399
{
11400-
"name": "exportContent",
11400+
"name": "export_",
1140111401
"description": "Launch export",
11402-
"privacy": "public",
11402+
"privacy": "private",
1140311403
"sourceRange": {
1140411404
"start": {
1140511405
"line": 729,

docs/components/myscript-common-element/.bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
"paper-toggle-button": "^2.0.0",
4848
"paper-slider": "^2.0.2"
4949
},
50-
"_release": "3ea542dea4",
50+
"_release": "58586781ad",
5151
"_resolution": {
5252
"type": "branch",
5353
"branch": "master",
54-
"commit": "3ea542dea4b571c37ca05a566e6ec83a18c57501"
54+
"commit": "58586781adfe07209da1533bb2f550a6f66a18ee"
5555
},
5656
"_source": "https://github.com/MyScript/myscript-common-element.git",
5757
"_target": "master",

docs/components/myscript-common-element/analysis.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@
801801
"column": 12
802802
},
803803
"end": {
804-
"line": 643,
804+
"line": 645,
805805
"column": 13
806806
}
807807
},
@@ -818,11 +818,11 @@
818818
"privacy": "protected",
819819
"sourceRange": {
820820
"start": {
821-
"line": 645,
821+
"line": 647,
822822
"column": 12
823823
},
824824
"end": {
825-
"line": 649,
825+
"line": 651,
826826
"column": 13
827827
}
828828
},
@@ -839,7 +839,7 @@
839839
"privacy": "protected",
840840
"sourceRange": {
841841
"start": {
842-
"line": 651,
842+
"line": 653,
843843
"column": 12
844844
},
845845
"end": {
@@ -1009,9 +1009,9 @@
10091009
"params": []
10101010
},
10111011
{
1012-
"name": "exportContent",
1012+
"name": "export_",
10131013
"description": "Trigger export",
1014-
"privacy": "public",
1014+
"privacy": "private",
10151015
"sourceRange": {
10161016
"start": {
10171017
"line": 951,

docs/components/myscript-common-element/examples/non-version-specific/custom_controls.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<button class="classic-btn" onclick="myscriptCommonElement.undo()">undo</button>
3535
<button class="classic-btn" onclick="myscriptCommonElement.redo()">redo</button>
3636
<button class="classic-btn" onclick="myscriptCommonElement.clear()">clear</button>
37-
<button class="classic-btn" onclick="myscriptCommonElement.exportContent()">export</button>
37+
<button class="classic-btn" onclick="myscriptCommonElement.export_()">export</button>
3838
<button class="classic-btn" onclick="myscriptCommonElement.convert()">convert</button>
3939
</nav>
4040
<paper-toast class="fit-top"></paper-toast>

docs/components/myscript-common-element/myscript-common-element.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,11 @@
633633
_changedListener(event) {
634634
if (event.detail) {
635635
this.initialized = event.detail.initialized;
636-
console.log(event.detail.isEmpty);
637-
this.canclear = event.detail.isEmpty ? !event.detail.isEmpty : event.detail.canClear;
638-
console.log(this.canclear);
636+
if (event.detail.isEmpty !== undefined) {
637+
this.canclear = !event.detail.isEmpty;
638+
} else {
639+
this.canclear = event.detail.canClear;
640+
}
639641
this.canundo = event.detail.canUndo;
640642
this.canredo = event.detail.canRedo;
641643
this.canexport = event.detail.canExport;
@@ -651,8 +653,6 @@
651653

652654
_exportedListener(event) {
653655
this.exports = event.detail ? event.detail.exports : {};
654-
if (this.apiversion === 'V4')
655-
this.canclear = this.exports[Object.keys(this.exports)[0]] !== '';
656656
}
657657

658658
_errorListener(event) {
@@ -949,9 +949,9 @@
949949
/**
950950
* Trigger export
951951
*/
952-
exportContent() {
952+
export_() {
953953
if (this.editor) {
954-
this.editor.exportContent();
954+
this.editor.export_();
955955
}
956956
}
957957

docs/components/myscript-math-web/analysis.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11397,9 +11397,9 @@
1139711397
"params": []
1139811398
},
1139911399
{
11400-
"name": "exportContent",
11400+
"name": "export_",
1140111401
"description": "Launch export",
11402-
"privacy": "public",
11402+
"privacy": "private",
1140311403
"sourceRange": {
1140411404
"start": {
1140511405
"line": 729,

docs/components/myscript-math-web/examples/non-version-specific/custom_controls.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<button class="classic-btn" onclick="myscriptMathWeb.undo()">undo</button>
3535
<button class="classic-btn" onclick="myscriptMathWeb.redo()">redo</button>
3636
<button class="classic-btn" onclick="myscriptMathWeb.clear()">clear</button>
37-
<button class="classic-btn" onclick="myscriptMathWeb.exportContent()">export</button>
37+
<button class="classic-btn" onclick="myscriptMathWeb.export_()">export</button>
3838
<button class="classic-btn" onclick="myscriptMathWeb.convert()">convert</button>
3939
</nav>
4040
<paper-toast class="fit-top"></paper-toast>

docs/components/myscript-math-web/examples/non-version-specific/interact_with_your_app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
checkElement.addEventListener('click', () => {
9090
myscriptMathWebElement.convert();
91-
const functionOutput = myscriptMathWebElement.exportContent();
91+
const functionOutput = myscriptMathWebElement.export_();
9292
console.log('Output :' + functionOutput);
9393
});
9494
});

docs/components/myscript-math-web/myscript-math-web.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@
727727
/**
728728
* Launch export
729729
*/
730-
exportContent() {
730+
export_() {
731731
if (this.editor) {
732-
this.editor.exportContent();
732+
this.editor.export_();
733733
}
734734
}
735735

docs/components/myscript/.bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"!bower.json",
2424
"!dist/**/*"
2525
],
26-
"_release": "2e5b4775ff",
26+
"_release": "e2e7124dc4",
2727
"_resolution": {
2828
"type": "branch",
2929
"branch": "master",
30-
"commit": "2e5b4775ff760340b27c30fe4168f153d2ecd6d7"
30+
"commit": "e2e7124dc46ac402181cea5ccaaaaabfa1466ae8"
3131
},
3232
"_source": "https://github.com/MyScript/MyScriptJS.git",
3333
"_target": "master",

docs/components/myscript/dist/myscript.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/components/myscript/dist/myscript.min.js.map

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

examples/non-version-specific/custom_controls.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<button class="classic-btn" onclick="myscriptMathWeb.undo()">undo</button>
3535
<button class="classic-btn" onclick="myscriptMathWeb.redo()">redo</button>
3636
<button class="classic-btn" onclick="myscriptMathWeb.clear()">clear</button>
37-
<button class="classic-btn" onclick="myscriptMathWeb.exportContent()">export</button>
37+
<button class="classic-btn" onclick="myscriptMathWeb.export_()">export</button>
3838
<button class="classic-btn" onclick="myscriptMathWeb.convert()">convert</button>
3939
</nav>
4040
<paper-toast class="fit-top"></paper-toast>

examples/non-version-specific/interact_with_your_app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
checkElement.addEventListener('click', () => {
9090
myscriptMathWebElement.convert();
91-
const functionOutput = myscriptMathWebElement.exportContent();
91+
const functionOutput = myscriptMathWebElement.export_();
9292
console.log('Output :' + functionOutput);
9393
});
9494
});

myscript-math-web.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@
727727
/**
728728
* Launch export
729729
*/
730-
exportContent() {
730+
export_() {
731731
if (this.editor) {
732-
this.editor.exportContent();
732+
this.editor.export_();
733733
}
734734
}
735735

0 commit comments

Comments
 (0)