Skip to content

Commit 7be03e8

Browse files
committed
Use proper UMD-wrapper
Updated the UMD to use the proper UMD-Wrapper. Passing window as root, doesn't add flexibility. The same with window.define. Passing in this as root, enables the root element to change - default browser behaviour is window. See more for inspiration: https://github.com/umdjs/umd/blob/master/amdWeb.js
1 parent d6041e1 commit 7be03e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pikaday.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
55
*/
66

7-
(function (root, define, factory)
7+
(function (root, factory)
88
{
99
'use strict';
1010

@@ -21,7 +21,7 @@
2121
// Browser global
2222
root.Pikaday = factory(root.moment);
2323
}
24-
}(window, window.define, function (moment)
24+
}(this, function (moment)
2525
{
2626
'use strict';
2727

0 commit comments

Comments
 (0)