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
This commit is contained in:
Jasper St. Pierre 2011-09-30 22:23:04 -04:00
parent 77c36af588
commit a3528bf973

View File

@ -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];
}