don't use Array.includes
This commit is contained in:
parent
3bebc3a7ca
commit
0200542e82
@ -71,7 +71,7 @@ export default class Binding {
|
|||||||
|
|
||||||
reassign(path: Object) {
|
reassign(path: Object) {
|
||||||
this.constant = false;
|
this.constant = false;
|
||||||
if (this.constantViolations.includes(path)) {
|
if (this.constantViolations.indexOf(path) !== -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.constantViolations.push(path);
|
this.constantViolations.push(path);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user