DesperateSolutions / rating-frontend-old

6 stars 1 forks source link

Warning in console on page load #10

Closed henninglh closed 8 years ago

henninglh commented 8 years ago

Warning shows up in the console:

mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create

Line that is marked as the cause of the warning:

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
Quist commented 8 years ago

Kommer ikke noe opp nå lenger. Close?

Quist commented 8 years ago

@henninglh

henninglh commented 8 years ago

Har ikke peiling på hvorfor, men ja! får ta en titt på det seinere og sjekke hva som ble endret