[Pkg-javascript-commits] [sockjs-client] 02/350: Remove explicit AMD name for greater portability.

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:02:44 UTC 2016


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

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

commit a9501f8d24bbbbaaeaee5b54bf71989aaf492286
Author: David Braun <BallBearing at example.com>
Date:   Thu Jan 24 18:50:00 2013 -0300

    Remove explicit AMD name for greater portability.
    
    See http://requirejs.org/docs/api.html#modulename.
---
 lib/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/index.js b/lib/index.js
index d32efee..96262d3 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -33,5 +33,5 @@ if ('_sockjs_onload' in window) setTimeout(_sockjs_onload, 1);
 
 // AMD compliance
 if (typeof define === 'function' && define.amd) {
-    define('sockjs', [], function(){return SockJS;});
+    define([], 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