We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Object.hasOwnProperty
1 parent c38717e commit 95124afCopy full SHA for 95124af
1 file changed
src/ember-app.js
@@ -430,11 +430,14 @@ function waitForApp(instance) {
430
* parse the specific item at the time it is needed instead of everything
431
* all at once.
432
*/
433
+const hasOwnProperty = Object.prototype.hasOwnProperty; // jshint ignore:line
434
+
435
function createShoebox(doc, fastbootInfo) {
436
let shoebox = fastbootInfo.shoebox;
437
if (!shoebox) { return; }
438
439
for (let key in shoebox) {
440
+ if (!hasOwnProperty.call(shoebox, key)) { continue; } // TODO: remove this later #144, ember-fastboot/ember-cli-fastboot/pull/417
441
let value = shoebox[key];
442
let textValue = JSON.stringify(value);
443
textValue = escapeJSONString(textValue);
0 commit comments