Skip to content

Commit

Permalink
Merge branch 'hotfix/0.1.1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Mar 11, 2024
2 parents a11d4a2 + 6278228 commit 0e644eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uu-cdh/timing-util",
"version": "0.1.0",
"version": "0.1.1",
"description": "Async timing utilities for JavaScript",
"author": "UU Centre for Digital Humanities - Research Software Lab",
"license": "BSD-3-Clause",
Expand Down
5 changes: 4 additions & 1 deletion src/fastTimeout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { restArguments } from 'underscore';
import _ from 'underscore';

// The code in this module was inspired on the following blog post:
// https://dbaron.org/log/20100309-faster-timeouts
Expand All @@ -7,6 +7,9 @@ import { restArguments } from 'underscore';
var timeouts = '_fastTimeoutRegistry';
var messageName = 'fast-timeout-message';

// Work around one of JDD's breaking changes in Lodash.
var restArguments = _.restArguments || _.rest;

function handleMessage(event) {
if (event.source === self && event.data === messageName) {
event.stopPropagation();
Expand Down

0 comments on commit 0e644eb

Please sign in to comment.