Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Remove blacklist reference
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Jun 16, 2020
1 parent 03b96be commit 866413c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const COMPONENT_WRAPPER_KEY =
typeof Symbol !== 'undefined' && Symbol.for ? Symbol.for('__preactCompatWrapper') : '__preactCompatWrapper';

// don't autobind these methods since they already have guaranteed context.
const AUTOBIND_BLACKLIST = {
const AUTOBIND_DENYLIST = {
constructor: 1,
render: 1,
shouldComponentUpdate: 1,
Expand Down Expand Up @@ -487,7 +487,7 @@ function applyMixins(proto, mixins) {
function bindAll(ctx) {
for (let i in ctx) {
let v = ctx[i];
if (typeof v === 'function' && !v.__bound && !AUTOBIND_BLACKLIST.hasOwnProperty(i)) {
if (typeof v === 'function' && !v.__bound && !AUTOBIND_DENYLIST.hasOwnProperty(i)) {
(ctx[i] = v.bind(ctx)).__bound = true;
}
}
Expand Down

0 comments on commit 866413c

Please sign in to comment.