[extensions-web] Fix switches for realsies this time
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Fix switches for realsies this time
- Date: Wed, 9 Nov 2011 18:04:44 +0000 (UTC)
commit e411e74b36c16d5f8186ecf9d2dde4e6159c3081
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Nov 9 13:03:53 2011 -0500
Fix switches for realsies this time
GetExtensionInfo() always returns an object, even if it's an empty one.
sweettooth/static/js/extensions.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index 33f2c91..cd7ae7f 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -84,7 +84,7 @@ function($, messages, dbusProxy) {
if (shellVersions && !versionCheck(shellVersions, dbusProxy.ShellVersion)) {
_state = ExtensionState.OUT_OF_DATE;
- } else if (extension) {
+ } else if (extension && !$.isEmptyObject(extension)) {
_state = extension.state;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]