[gnome-shell] layout: Fix the actor tracking parameter parsing



commit a3528bf9737e90aeaa23c34987df018616e15576
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Sep 30 22:23:04 2011 -0400

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index 4e239e6..0fe255e 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];
         }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]