Dexie Logo
CtrlK

Dexie.override()

Enables overriding existing functions and still be able to call the original function from within your overridden function.

Sample

The following sample shows how to log to console each time window.open() is called.
window.open = Dexie.override(window.open, function(origFunc) {
    return function (url) {
        console.log("Opening url: " + url);
        return origFunc.apply(this, arguments);
    }
});

© 2014-2025 Awarica AB

Browser testing via

TestMu AI (Formerly LambdaTest)

Made with love for great people.

Read Terms & Conditions and Privacy Policy.

We recently launched a new website! Missing something? Visit the old site. Your feedback is welcome!