We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c60c8c8 + 95124af commit f41f387Copy full SHA for f41f387
1 file changed
src/ember-app.js
@@ -413,13 +413,14 @@ function buildBootOptions(shouldRender) {
413
* parse the specific item at the time it is needed instead of everything
414
* all at once.
415
*/
416
+const hasOwnProperty = Object.prototype.hasOwnProperty; // jshint ignore:line
417
+
418
function createShoebox(doc, fastbootInfo) {
419
let shoebox = fastbootInfo.shoebox;
420
if (!shoebox) { return; }
421
422
for (let key in shoebox) {
- if (!shoebox.hasOwnProperty(key)) { continue; }
-
423
+ if (!hasOwnProperty.call(shoebox, key)) { continue; } // TODO: remove this later #144, ember-fastboot/ember-cli-fastboot/pull/417
424
let value = shoebox[key];
425
let textValue = JSON.stringify(value);
426
textValue = escapeJSONString(textValue);
0 commit comments