aboutsummaryrefslogtreecommitdiff
path: root/ext/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-27 17:04:49 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-27 17:04:49 -0700
commit43d14c0c81824d71cda16c9921348719844044af (patch)
tree91cffa6faf971efbeaf6efab6a5995b251de961d /ext/util.js
parent4b35a6c5563ca7a0d050c049280aafeb097060c0 (diff)
Updates
Diffstat (limited to 'ext/util.js')
-rw-r--r--ext/util.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/util.js b/ext/util.js
index e90904f1..76579cac 100644
--- a/ext/util.js
+++ b/ext/util.js
@@ -68,13 +68,3 @@ function getPopupPositionForRange(popup, range, offset) {
return {x: posX, y: posY};
}
-
-function whenEnabled(callback) {
- return (...args) => {
- getState((state) => {
- if (state === 'enabled') {
- callback(...args);
- }
- });
- };
-}