0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -05:00
Squire/source/outro.js

23 lines
539 B
JavaScript
Raw Normal View History

/*jshint ignore:start */
if ( typeof exports === 'object' ) {
module.exports = Squire;
2015-07-13 11:16:16 -05:00
} else if ( typeof define === 'function' && define.amd ) {
2015-07-13 11:33:38 -05:00
define( function () {
2015-07-13 11:16:16 -05:00
return Squire;
2015-07-13 11:33:38 -05:00
});
} else {
win.Squire = Squire;
if ( top !== win &&
doc.documentElement.getAttribute( 'data-squireinit' ) === 'true' ) {
win.editor = new Squire( doc );
if ( win.onEditorLoad ) {
win.onEditorLoad( win.editor );
win.onEditorLoad = null;
}
2015-05-06 21:52:32 -05:00
}
}
}( document ) );