[extensions-web] js: Fix extension installation
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] js: Fix extension installation
- Date: Tue, 5 Jun 2012 13:21:59 +0000 (UTC)
commit 38dd8d25891ad5e7cf3b01cfa4f7d071aabf6d8d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jun 5 09:21:37 2012 -0400
js: Fix extension installation
sweettooth/static/js/extensions.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index 477b05e..18a3bca 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -68,7 +68,7 @@ function($, messages, dbusProxy, extensionUtils, templates) {
// uuid => elem
var elems = {};
- function extensionStateChanged(uuid) {
+ function extensionStateChanged(uuid, newState) {
if (elems[uuid] !== undefined)
elems[uuid].trigger('state-changed', newState);
}
@@ -77,7 +77,9 @@ function($, messages, dbusProxy, extensionUtils, templates) {
dbusProxy.shellRestartHandler = function() {
dbusProxy.ListExtensions().done(function(extensions) {
- $.each(extensions, extensionStateChanged);
+ $.each(extensions, function() {
+ extensionStateChanged(this.uuid, this.state);
+ });
});
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]