[extensions-web] js: Get all modules into the same style
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] js: Get all modules into the same style
- Date: Sun, 3 Jun 2012 01:22:33 +0000 (UTC)
commit 358c9620cdc9a500ed88d93c4905ddc06aec8077
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Jun 2 21:15:41 2012 -0400
js: Get all modules into the same style
sweettooth/static/js/dbus.js | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/static/js/dbus.js b/sweettooth/static/js/dbus.js
index 1e3f580..9d1234c 100644
--- a/sweettooth/static/js/dbus.js
+++ b/sweettooth/static/js/dbus.js
@@ -10,7 +10,9 @@
define(['jquery'], function($) {
"use strict";
- function load(name, req, onLoad, config) {
+ var exports = {};
+
+ var load = exports.load = function(name, req, onLoad, config) {
$(document).ready(function() {
if (!('SweetTooth' in window)) {
@@ -65,7 +67,7 @@ define(['jquery'], function($) {
onLoad(module);
});
});
- }
+ };
- return { load: load };
+ return exports;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]