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

Commit 162c494

Browse files
author
DEWITTE Pierre-Alban
committed
[Loading]Improving interop of element
1 parent 73a695b commit 162c494

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

myscript-common-element.html

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -400,26 +400,27 @@
400400
if(this.strokewidth){
401401
this._penParameters.width = this.strokewidth;
402402
}
403-
404-
this._inkPaper = new MyScript.InkPaper(this._inputArea, {
405-
host: this.host,
406-
protocol: this.protocol,
407-
ssl: this.ssl,
408-
type : this.type,
409-
width : this.offsetWidth,
410-
height : this.offsetHeight,
411-
timeout : this.timeout,
412-
applicationKey : this.applicationkey,
413-
hmacKey : this.hmackey,
414-
typeset: this.typeset,
415-
components : this.components,
416-
textParameters : this.textparameters,
417-
mathParameters : this.mathparameters,
418-
shapeParameters : this.shapeparameters,
419-
musicParameters : this.musicparameters,
420-
analyzerParameters : this.analyzerparameters,
421-
penParameters : this._penParameters
422-
});
403+
if(!this._inkPaper) {
404+
this._inkPaper = new MyScript.InkPaper(this._inputArea, {
405+
host: this.host,
406+
protocol: this.protocol,
407+
ssl: this.ssl,
408+
type: this.type,
409+
width: this.offsetWidth,
410+
height: this.offsetHeight,
411+
timeout: this.timeout,
412+
applicationKey: this.applicationkey,
413+
hmacKey: this.hmackey,
414+
typeset: this.typeset,
415+
components: this.components,
416+
textParameters: this.textparameters,
417+
mathParameters: this.mathparameters,
418+
shapeParameters: this.shapeparameters,
419+
musicParameters: this.musicparameters,
420+
analyzerParameters: this.analyzerparameters,
421+
penParameters: this._penParameters
422+
});
423+
}
423424
},
424425
_onResize: function () {
425426
if (this._inkPaper) {

0 commit comments

Comments
 (0)