Skip to content

Commit

Permalink
chore(rules): replace whitelist/blacklist with allowlist/blocklist
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac authored and fake-join[bot] committed Jun 11, 2020
1 parent dfb42d8 commit 6e7c7c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/spec/features/rules/priority-rules/PriorityRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ inherits(PriorityRules, RuleProvider);

PriorityRules.prototype.init = function() {

// a white+black list containing
// a allow+block list containing
// element ids
var whiteList = [
var allowList = [
'always-resizable'
];

var blackList = [
var blockList = [
'never-resizable'
];

Expand All @@ -36,13 +36,13 @@ PriorityRules.prototype.init = function() {
this.addRule('shape.resize', HIGH_PRIORITY, function(context) {
var shape = context.shape;

if (whiteList.indexOf(shape.id) !== -1) {
if (allowList.indexOf(shape.id) !== -1) {
return true;
}

if (blackList.indexOf(shape.id) !== -1) {
if (blockList.indexOf(shape.id) !== -1) {
return false;
}
});

};
};

0 comments on commit 6e7c7c8

Please sign in to comment.