Skip to content

Commit 5ea3931

Browse files
committed
Bump v2.0.0
1 parent dfb17d5 commit 5ea3931

21 files changed

+2302
-2161
lines changed

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
2-
"name": "com.ecarriou.systemdesignerios",
3-
"version": "2.0.0",
4-
"displayName": "System Designer",
5-
"cordova": {
6-
"platforms": [
7-
"android",
8-
"browser",
9-
"ios"
10-
],
11-
"plugins": {
12-
"cordova-plugin-inappbrowser": {},
13-
"cordova-plugin-statusbar": {},
14-
"cordova-plugin-whitelist": {},
15-
"cordova-plugin-wkwebview-engine": {}
16-
}
17-
},
18-
"dependencies": {
19-
"cordova-android": "^6.2.3",
20-
"cordova-browser": "^5.0.0",
21-
"cordova-ios": "^4.5.0",
22-
"cordova-plugin-inappbrowser": "^1.7.1",
23-
"cordova-plugin-statusbar": "^2.2.3",
24-
"cordova-plugin-whitelist": "^1.3.2",
25-
"cordova-plugin-wkwebview-engine": "^1.1.3"
2+
"name": "com.ecarriou.systemdesignerios",
3+
"version": "2.0.0",
4+
"displayName": "System Designer",
5+
"cordova": {
6+
"platforms": [
7+
"android",
8+
"browser",
9+
"ios"
10+
],
11+
"plugins": {
12+
"cordova-plugin-inappbrowser": {},
13+
"cordova-plugin-statusbar": {},
14+
"cordova-plugin-whitelist": {},
15+
"cordova-plugin-wkwebview-engine": {}
2616
}
17+
},
18+
"dependencies": {
19+
"cordova-android": "^6.2.3",
20+
"cordova-browser": "^5.0.0",
21+
"cordova-ios": "^4.5.0",
22+
"cordova-plugin-inappbrowser": "^1.7.1",
23+
"cordova-plugin-statusbar": "^2.2.3",
24+
"cordova-plugin-whitelist": "^1.3.2",
25+
"cordova-plugin-wkwebview-engine": "^1.1.3"
26+
}
2727
}

www/lib/codemirror/addon/edit/closebrackets.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
cm.state.closeBrackets = null;
2424
}
2525
if (val) {
26+
ensureBound(getOption(val, "pairs"))
2627
cm.state.closeBrackets = val;
2728
cm.addKeyMap(keyMap);
2829
}
@@ -34,10 +35,14 @@
3435
return defaults[name];
3536
}
3637

37-
var bind = defaults.pairs + "`";
3838
var keyMap = {Backspace: handleBackspace, Enter: handleEnter};
39-
for (var i = 0; i < bind.length; i++)
40-
keyMap["'" + bind.charAt(i) + "'"] = handler(bind.charAt(i));
39+
function ensureBound(chars) {
40+
for (var i = 0; i < chars.length; i++) {
41+
var ch = chars.charAt(i), key = "'" + ch + "'"
42+
if (!keyMap[key]) keyMap[key] = handler(ch)
43+
}
44+
}
45+
ensureBound(defaults.pairs + "`")
4146

4247
function handler(ch) {
4348
return function(cm) { return handleChar(cm, ch); };

0 commit comments

Comments
 (0)