Fossil SCM

Removed some stray debug output. Added a window.CustomEvent polyfill "just in case."

stephan 2020-08-16 01:32 line-number-selection
Commit af47d1531d30c5937db29c995232cb03ec3975262e76bd0985bc203a6a849e8a
--- src/fossil.bootstrap.js
+++ src/fossil.bootstrap.js
@@ -1,6 +1,18 @@
11
"use strict";
2
+(function () {
3
+ /* CustomEvent polyfill, courtesy of Mozilla:
4
+ https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
5
+ */
6
+ if(typeof window.CustomEvent === "function") return false;
7
+ window.CustomEvent = function(event, params) {
8
+ if(!params) params = {bubbles: false, cancelable: false, detail: null};
9
+ const evt = document.createEvent('CustomEvent');
10
+ evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
11
+ return evt;
12
+ };
13
+})();
214
(function(global){
315
/* Bootstrapping bits for the global.fossil object. Must be
416
loaded after style.c:style_emit_script_tag() has initialized
517
that object.
618
*/
719
--- src/fossil.bootstrap.js
+++ src/fossil.bootstrap.js
@@ -1,6 +1,18 @@
1 "use strict";
 
 
 
 
 
 
 
 
 
 
 
 
2 (function(global){
3 /* Bootstrapping bits for the global.fossil object. Must be
4 loaded after style.c:style_emit_script_tag() has initialized
5 that object.
6 */
7
--- src/fossil.bootstrap.js
+++ src/fossil.bootstrap.js
@@ -1,6 +1,18 @@
1 "use strict";
2 (function () {
3 /* CustomEvent polyfill, courtesy of Mozilla:
4 https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
5 */
6 if(typeof window.CustomEvent === "function") return false;
7 window.CustomEvent = function(event, params) {
8 if(!params) params = {bubbles: false, cancelable: false, detail: null};
9 const evt = document.createEvent('CustomEvent');
10 evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
11 return evt;
12 };
13 })();
14 (function(global){
15 /* Bootstrapping bits for the global.fossil object. Must be
16 loaded after style.c:style_emit_script_tag() has initialized
17 that object.
18 */
19
--- src/fossil.popupwidget.js
+++ src/fossil.popupwidget.js
@@ -168,11 +168,10 @@
168168
x = this.options.adjustX.call(this,x);
169169
y = this.options.adjustY.call(this,y);
170170
x += window.pageXOffset;
171171
y += window.pageYOffset;
172172
}
173
- console.debug("showIt?",showIt,x,y);
174173
if(showIt){
175174
if('number'===typeof x && 'number'===typeof y){
176175
this.e.style.left = x+"px";
177176
this.e.style.top = y+"px";
178177
}
179178
--- src/fossil.popupwidget.js
+++ src/fossil.popupwidget.js
@@ -168,11 +168,10 @@
168 x = this.options.adjustX.call(this,x);
169 y = this.options.adjustY.call(this,y);
170 x += window.pageXOffset;
171 y += window.pageYOffset;
172 }
173 console.debug("showIt?",showIt,x,y);
174 if(showIt){
175 if('number'===typeof x && 'number'===typeof y){
176 this.e.style.left = x+"px";
177 this.e.style.top = y+"px";
178 }
179
--- src/fossil.popupwidget.js
+++ src/fossil.popupwidget.js
@@ -168,11 +168,10 @@
168 x = this.options.adjustX.call(this,x);
169 y = this.options.adjustY.call(this,y);
170 x += window.pageXOffset;
171 y += window.pageYOffset;
172 }
 
173 if(showIt){
174 if('number'===typeof x && 'number'===typeof y){
175 this.e.style.left = x+"px";
176 this.e.style.top = y+"px";
177 }
178

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button