mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2025-02-25 05:44:02 -05:00
Realigned AMD wrapper
This commit is contained in:
parent
8425e598c3
commit
f9a31fcafc
1 changed files with 10 additions and 10 deletions
|
@ -15,11 +15,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (factory) {
|
(function (factory) {
|
||||||
// Add jQuery via AMD registration or browser globals
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
define(['jquery'], factory);
|
define(['jquery'], factory);
|
||||||
}
|
} else {
|
||||||
else {
|
// Browser globals
|
||||||
factory(jQuery);
|
factory(jQuery);
|
||||||
}
|
}
|
||||||
}(function ($) {
|
}(function ($) {
|
||||||
|
|
Loading…
Reference in a new issue