[extensions-web] Credit James Burke for helping me with some require.js stuff
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Credit James Burke for helping me with some require.js stuff
- Date: Wed, 26 Oct 2011 21:59:22 +0000 (UTC)
commit 6f4c3a4f9e928ecbbc64ec4f76f318f2bb76f962
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Oct 26 16:44:28 2011 -0400
Credit James Burke for helping me with some require.js stuff
sweettooth/static/js/dbus.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/dbus.js b/sweettooth/static/js/dbus.js
index 6a62c82..b786b2e 100644
--- a/sweettooth/static/js/dbus.js
+++ b/sweettooth/static/js/dbus.js
@@ -3,6 +3,10 @@
// We need to abuse the plugin system so that we can defer the
// load completion until our dynamically built requirement is
// loaded.
+
+// Thanks to James Burke for helping me with this.
+// http://groups.google.com/group/requirejs/msg/cc6016210c53a51d
+
define({
load: function(name, req, onLoad, config) {
req(['jquery'], function ($) {
@@ -20,7 +24,7 @@ define({
// TODO: this may not work if the DOM is not ready
// when this call is made. Depending on browsers
- // you want to support, wither listen to
+ // you want to support, either listen to
// DOMContentLoaded, event, or use $(function(){}), but in
// those cases, the full body of this load action should
// be in that call.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]