[Pkg-javascript-commits] [sockjs-client] 369/434: Fix #53 - AMD compliance

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit 3af0b787e4a842628dd304f3268215e8dca5e758
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Tue Mar 20 11:47:53 2012 +0000

    Fix #53 - AMD compliance
---
 lib/index.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/index.js b/lib/index.js
index e2873a3..d32efee 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -30,3 +30,8 @@ SockJS = (function(){
                   return SockJS;
           })();
 if ('_sockjs_onload' in window) setTimeout(_sockjs_onload, 1);
+
+// AMD compliance
+if (typeof define === 'function' && define.amd) {
+    define('sockjs', [], function(){return SockJS;});
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list