mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-31 21:03:33 +02:00
Fix all the things. And break most of the other things, in all likelihood.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2014 Kris Maglione <maglione.k at Gmail>
|
||||
// Copyright (c) 2015 Kris Maglione <maglione.k at Gmail>
|
||||
//
|
||||
// This work is licensed for reuse under an MIT license. Details are
|
||||
// given in the LICENSE.txt file included with this file.
|
||||
@@ -25,10 +25,10 @@ function withCallbacks(fn) {
|
||||
}
|
||||
|
||||
var Promises = Module("Promises", {
|
||||
_cancel: WeakMap(),
|
||||
_cancel: new WeakMap,
|
||||
|
||||
/**
|
||||
* Allows promises to be canceled..
|
||||
* Allows promises to be canceled.
|
||||
*
|
||||
* @param {Promise} promise The promise to cancel.
|
||||
* @param {*} arg Argument to be passed to the cancellation
|
||||
|
||||
Reference in New Issue
Block a user