Skip to content

Commit

Permalink
Use __proto__ if no Object.getPrototypeOf
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Nov 3, 2015
1 parent 8000460 commit 80c5172
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/tech/tech.js
Expand Up @@ -438,7 +438,11 @@ class Tech extends Component {
}

static isTech(component) {
return Object.getPrototypeOf(component) === Tech;
let proto = component.__proto__;
if (Object.getPrototypeOf) {
proto = Object.getPrototypeOf(component);
}
return proto === Tech;
}
}

Expand Down

0 comments on commit 80c5172

Please sign in to comment.