-
Notifications
You must be signed in to change notification settings - Fork 1
/
readium_bug_fixes.patch
51 lines (47 loc) · 1.69 KB
/
readium_bug_fixes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- readium-js-viewer_all_LITE.js.orig 2021-04-29 20:57:17.000000000 -0400
+++ readium-js-viewer_all_LITE.js 2021-04-30 10:32:48.000000000 -0400
@@ -15576,9 +15576,10 @@
encode: {
// RFC3986 2.1: For consistency, URI producers and normalizers should
// use uppercase hexadecimal digits for all percent-encodings.
- expression: /%(24|26|2B|2C|3B|3D|3A|40)/ig,
+ expression: /%(20|24|26|2B|2C|3B|3D|3A|40)/ig,
map: {
// -._~!'()*
+ '%20': ' ',
'%24': '$',
'%26': '&',
'%2B': '+',
@@ -15592,6 +15593,7 @@
decode: {
expression: /[\/\?#]/g,
map: {
+ ' ': '%20',
'/': '%2F',
'?': '%3F',
'#': '%23'
@@ -63080,7 +63082,9 @@
var complete = function () {
var prevHoverState = that.hoverState
- that.$element.trigger('shown.bs.' + that.type)
+ if (that.$element) {
+ that.$element.trigger('shown.bs.' + that.type)
+ }
that.hoverState = null
if (prevHoverState == 'out') that.leave(that)
@@ -63324,7 +63328,9 @@
var that = this
clearTimeout(this.timeout)
this.hide(function () {
- that.$element.off('.' + that.type).removeData('bs.' + that.type)
+ if (that.$element) {
+ that.$element.off('.' + that.type).removeData('bs.' + that.type)
+ }
if (that.$tip) {
that.$tip.detach()
}
@@ -73531,4 +73537,4 @@
require(["readium_shared_js/globalsSetup", "readium_js_viewer/ReadiumViewerLite"]);
-//# sourceMappingURL=readium-js-viewer_all_LITE.js.map
\ No newline at end of file
+//# sourceMappingURL=readium-js-viewer_all_LITE.js.map