don't use Array.includes

This commit is contained in:
Amjad Masad 2016-03-08 00:33:37 -08:00
parent 3bebc3a7ca
commit 0200542e82

View File

@ -71,7 +71,7 @@ export default class Binding {
reassign(path: Object) {
this.constant = false;
if (this.constantViolations.includes(path)) {
if (this.constantViolations.indexOf(path) !== -1) {
return;
}
this.constantViolations.push(path);