Skip to content

Commit 520c612

Browse files
committed
Website updates
1 parent 48181eb commit 520c612

File tree

9 files changed

+12
-10
lines changed

9 files changed

+12
-10
lines changed

dist/en/main/examples/common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/offscreen-canvas.worker.worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/offscreen-canvas.worker.worker.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/events.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/events.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ export function listen(target, type, listener, thisArg, once) {
4848
if (once) {
4949
const originalListener = listener;
5050
/**
51+
* @param {Event|import('./events/Event.js').default} event The event
52+
* @return {void|boolean} When the function returns `false`, event propagation will stop.
5153
* @this {typeof target}
5254
*/
53-
listener = function () {
55+
listener = function (event) {
5456
target.removeEventListener(type, listener);
55-
originalListener.apply(thisArg ?? this, arguments);
57+
return originalListener.call(thisArg ?? this, event);
5658
};
5759
} else if (thisArg && thisArg !== target) {
5860
listener = listener.bind(thisArg);

dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)