From a3528bf9737e90aeaa23c34987df018616e15576 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 30 Sep 2011 22:23:04 -0400 Subject: [PATCH] layout: Fix the actor tracking parameter parsing It's not appropriate to inherit from the parent property if we pass "false" as a value, especially when all current parameters are booleans. https://bugzilla.gnome.org/show_bug.cgi?id=660608 --- js/ui/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/layout.js b/js/ui/layout.js index 4e239e6e0..0fe255ed4 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -625,7 +625,7 @@ Chrome.prototype = { // We can't use Params.parse here because we want to drop // the extra values like ancestorData.actor for (let prop in defaultParams) { - if (!params[prop]) + if (!params.hasOwnProperty(prop)) params[prop] = ancestorData[prop]; }