Skip to content

Commit

Permalink
update UMD templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos M committed Jul 19, 2016
1 parent c8079c4 commit 2af1712
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 41 deletions.
16 changes: 8 additions & 8 deletions src/RT.BOSH.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
* https://github.com/foo123/RT
*
**/
!function( root, factory ) {
!function( root, factory ){
"use strict";
if ( ('undefined'!==typeof Components)&&('object'===typeof Components.classes)&&('object'===typeof Components.classesByID)&&Components.utils&&('function'===typeof Components.utils['import']) )
factory( root, root['RT'] );
else if ( 'object' === typeof exports )
factory( root, require('./RT.js') );
else
factory( root, root['RT'] ) && ('function' === typeof define) && define.amd && define(function( ){ return root['RT']; });
}(this, function( root, RT ) {
if ( ('object'===typeof module) && module.exports ) /* CommonJS */
module.exports = factory.call(root,(module.$deps && module.$deps["RT"]) || require("./RT"));
else if ( ("function"===typeof define) && define.amd && ("function"===typeof require) && ("function"===typeof require.specified) && require.specified("RT_BOSH") /*&& !require.defined("RT_BOSH")*/ )
define("RT_BOSH",['module',"RT"],function(mod,module){factory.moduleUri = mod.uri; factory.call(root,module); return module;});
else /* Browser/WebWorker/.. */
(factory.call(root,root["RT"])||1)&&('function'===typeof define)&&define.amd&&define(function(){return root["RT"];} );
}(this, function ModuleFactory__RT_BOSH( RT ){
"use strict";

var PROTO = 'prototype', HAS = 'hasOwnProperty', toString = Object[PROTO].toString,
Expand Down
2 changes: 1 addition & 1 deletion src/RT.BOSH.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions src/RT.Poll.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
* https://github.com/foo123/RT
*
**/
!function( root, factory ) {
!function( root, factory ){
"use strict";
if ( ('undefined'!==typeof Components)&&('object'===typeof Components.classes)&&('object'===typeof Components.classesByID)&&Components.utils&&('function'===typeof Components.utils['import']) )
factory( root, root['RT'] );
else if ( 'object' === typeof exports )
factory( root, require('./RT.js') );
else
factory( root, root['RT'] ) && ('function' === typeof define) && define.amd && define(function( ){ return root['RT']; });
}(this, function( root, RT ) {
if ( ('object'===typeof module) && module.exports ) /* CommonJS */
module.exports = factory.call(root,(module.$deps && module.$deps["RT"]) || require("./RT"));
else if ( ("function"===typeof define) && define.amd && ("function"===typeof require) && ("function"===typeof require.specified) && require.specified("RT_Poll") /*&& !require.defined("RT_Poll")*/ )
define("RT_Poll",['module',"RT"],function(mod,module){factory.moduleUri = mod.uri; factory.call(root,module); return module;});
else /* Browser/WebWorker/.. */
(factory.call(root,root["RT"])||1)&&('function'===typeof define)&&define.amd&&define(function(){return root["RT"];} );
}(this, function ModuleFactory__RT_Poll( RT ){
"use strict";

var PROTO = 'prototype', HAS = 'hasOwnProperty', toString = Object[PROTO].toString,
Expand Down
2 changes: 1 addition & 1 deletion src/RT.Poll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions src/RT.WebRTC.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,26 @@
* https://github.com/foo123/RT
*
**/
!function( root, factory ) {
!function( root, factory ){
"use strict";
if ( ('object'===typeof module) && module.exports ) /* CommonJS */
module.exports = factory.call(root,(module.$deps && module.$deps["RT"]) || require("./RT"));
else if ( ("function"===typeof define) && define.amd && ("function"===typeof require) && ("function"===typeof require.specified) && require.specified("RT_WebRTC") /*&& !require.defined("RT_WebRTC")*/ )
define("RT_WebRTC",['module',"RT"],function(mod,module){factory.moduleUri = mod.uri; factory.call(root,module); return module;});
else /* Browser/WebWorker/.. */
(factory.call(root,root["RT"])||1)&&('function'===typeof define)&&define.amd&&define(function(){return root["RT"];} );
}(this, function ModuleFactory__RT_WebRTC( RT ){
"use strict";

/* !function( root, factory ) {
"use strict";
if ( ('undefined'!==typeof Components)&&('object'===typeof Components.classes)&&('object'===typeof Components.classesByID)&&Components.utils&&('function'===typeof Components.utils['import']) )
factory( root, root['RT'] );
else if ( 'object' === typeof exports )
factory( root, require('./RT.js') );
else
factory( root, root['RT'] ) && ('function' === typeof define) && define.amd && define(function( ){ return root['RT']; });
}(this, function( root, RT ) {
"use strict";
}(this, function( root, RT ) {*/

// TODO
return RT;
Expand Down
18 changes: 9 additions & 9 deletions src/RT.WebSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
* https://github.com/foo123/RT
*
**/
!function( root, factory ) {
!function( root, factory ){
"use strict";
if ( ('undefined'!==typeof Components)&&('object'===typeof Components.classes)&&('object'===typeof Components.classesByID)&&Components.utils&&('function'===typeof Components.utils['import']) )
factory( root, root['RT'] );
else if ( 'object' === typeof exports )
factory( root, require('./RT.js') );
else
factory( root, root['RT'] ) && ('function' === typeof define) && define.amd && define(function( ){ return root['RT']; });
}(this, function( root, RT ) {
if ( ('object'===typeof module) && module.exports ) /* CommonJS */
module.exports = factory.call(root,(module.$deps && module.$deps["RT"]) || require("./RT"));
else if ( ("function"===typeof define) && define.amd && ("function"===typeof require) && ("function"===typeof require.specified) && require.specified("RT_WebSocket") /*&& !require.defined("RT_WebSocket")*/ )
define("RT_WebSocket",['module',"RT"],function(mod,module){factory.moduleUri = mod.uri; factory.call(root,module); return module;});
else /* Browser/WebWorker/.. */
(factory.call(root,root["RT"])||1)&&('function'===typeof define)&&define.amd&&define(function(){return root["RT"];} );
}(this, function ModuleFactory__RT_WebSocket( RT ){
"use strict";

var PROTO = 'prototype', HAS = 'hasOwnProperty', toString = Object[PROTO].toString,
var root = this, PROTO = 'prototype', HAS = 'hasOwnProperty', toString = Object[PROTO].toString,
RT_Client = RT.Client, __super__ = RT_Client[PROTO], WebSocket
;

Expand Down
Loading

0 comments on commit 2af1712

Please sign in to comment.