diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 7ef3bbb8a..23969a6a5 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -508,9 +508,8 @@ PopupSwitchMenuItem.prototype = { _init: function(text, active) { PopupBaseMenuItem.prototype._init.call(this); - this.active = !!active; this.label = new St.Label({ text: text }); - this._switch = new Switch(this.active); + this._switch = new Switch(active); this.addActor(this.label); this.addActor(this._switch.actor);