0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

Add support for AMD

This commit is contained in:
Je 2015-07-14 00:16:16 +08:00
parent 8d764f6638
commit 3f13435182
3 changed files with 9 additions and 1 deletions

View file

@ -3869,6 +3869,10 @@ proto.decreaseListLevel = command( 'modifyBlocks', decreaseListLevel );
if ( typeof exports === 'object' ) { if ( typeof exports === 'object' ) {
module.exports = Squire; module.exports = Squire;
} else if ( typeof define === 'function' && define.amd ) {
define( function() {
return Squire;
} );
} else { } else {
win.Squire = Squire; win.Squire = Squire;

File diff suppressed because one or more lines are too long

View file

@ -2,6 +2,10 @@
if ( typeof exports === 'object' ) { if ( typeof exports === 'object' ) {
module.exports = Squire; module.exports = Squire;
} else if ( typeof define === 'function' && define.amd ) {
define( function() {
return Squire;
} );
} else { } else {
win.Squire = Squire; win.Squire = Squire;