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

Commit ffe204a

Browse files
author
Francois-Xavier Gentilhomme
committed
[FIX] fixes programmatic init
1 parent b5264b5 commit ffe204a

File tree

17 files changed

+1342
-892
lines changed

17 files changed

+1342
-892
lines changed

analysis.json

Lines changed: 288 additions & 228 deletions
Large diffs are not rendered by default.

demo/programmatic_init.html

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,13 @@
2828
scheme: 'https',
2929
host: 'webdemoapi.myscript.com',
3030
applicationKey: '22eda92c-10af-40d8-abea-fd4093c17d81',
31-
hmacKey: 'a1fa759f-b3ce-4091-9fd4-d34bb870c601',
32-
language: 'zh_CN'
31+
hmacKey: 'a1fa759f-b3ce-4091-9fd4-d34bb870c601'
3332
};
3433
// Testing if attributes binding via DOM, setAttribute or direct object manipulation is working.
3534
textElement.setAttribute('scheme', configuration.scheme);
3635
textElement.setAttribute('host', configuration.host);
3736
textElement.applicationkey = configuration.applicationKey;
3837
textElement.hmackey = configuration.hmacKey;
39-
// Testing if options are taken into account
40-
textElement.configuration = {
41-
recognitionParams: {
42-
v3: {
43-
textParameter: {
44-
language: configuration.language
45-
}
46-
}
47-
}
48-
};
4938
// Force the component to reload with the new configuration
5039
textElement.unloaded = true;
5140
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
"iron-component-page": "PolymerElements/iron-component-page#^3.0.0",
4343
"webcomponentsjs": "^1.0.1"
4444
},
45-
"_release": "8759cad96f",
45+
"_release": "8da6fb8b67",
4646
"_resolution": {
4747
"type": "branch",
4848
"branch": "2.0.0-alpha1",
49-
"commit": "8759cad96f976689d76573358e6b7c3ef65a7aff"
49+
"commit": "8da6fb8b6732b8a3779fc82671c954fac3fd158f"
5050
},
5151
"_source": "https://github.com/MyScript/myscript-common-element.git",
5252
"_target": "2.0.0-alpha1",

0 commit comments

Comments
 (0)