Files
web-apps/vendor/underscore/test/overrides.js
2024-03-06 21:54:19 +05:00

13 lines
278 B
JavaScript

(function() {
function overrideDataView() {
NativeDataView = DataView;
DataView = {};
}
// Only override browser functions roughly 1/3rd of the time
var runOverrides = Math.floor(Math.random() * 3) === 0;
if (runOverrides) {
overrideDataView();
}
})();