Skip to content

Commit dedb8c3

Browse files
code1492yyx990803
authored andcommitted
property "constructor" in data with error fixed. (vuejs#222)
* property "constructor" in data with error fixed. Fixed an error when declaring property "constructor" in data. * Update detector.js * change '__proto__' to 'Object.getPrototypeOf' Object.getPrototypeOf(el.__vue__) el.__vue__.__proto__
1 parent a29a417 commit dedb8c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shells/chrome/src/detector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function detect (win) {
99
const all = document.querySelectorAll('*')
1010
const el = [].find.call(all, e => e.__vue__)
1111
if (el) {
12-
let Vue = el.__vue__.constructor
12+
let Vue = Object.getPrototypeOf(el.__vue__).constructor
1313
while (Vue.super) {
1414
Vue = Vue.super
1515
}

0 commit comments

Comments
 (0)