Skip to content

Commit

Permalink
Website updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Dec 16, 2024
1 parent 48181eb commit 520c612
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/examples/offscreen-canvas.worker.worker.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/events.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions dist/en/main/ol/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ export function listen(target, type, listener, thisArg, once) {
if (once) {
const originalListener = listener;
/**
* @param {Event|import('./events/Event.js').default} event The event
* @return {void|boolean} When the function returns `false`, event propagation will stop.
* @this {typeof target}
*/
listener = function () {
listener = function (event) {
target.removeEventListener(type, listener);
originalListener.apply(thisArg ?? this, arguments);
return originalListener.call(thisArg ?? this, event);
};
} else if (thisArg && thisArg !== target) {
listener = listener.bind(thisArg);
Expand Down
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

0 comments on commit 520c612

Please sign in to comment.