Skip to content

Commit 03e7368

Browse files
committed
Switched to UMD.
1 parent 67c60d0 commit 03e7368

File tree

6 files changed

+58
-10
lines changed

6 files changed

+58
-10
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rekord-debug",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"homepage": "https://github.com/Rekord/rekord-debug",
55
"authors": [
66
"Philip Diffenderfer <pdiffenderfer@gmail.com>"

build/rekord-debug.js

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
1-
/* rekord-debug 1.4.1 - A rekord binding to console - implementing Rekord.debug by Philip Diffenderfer */
2-
(function(global, Rekord)
1+
/* rekord-debug 1.4.2 - A rekord binding to console - implementing Rekord.debug by Philip Diffenderfer */
2+
// UMD (Universal Module Definition)
3+
(function (root, factory)
4+
{
5+
if (typeof define === 'function' && define.amd) // jshint ignore:line
6+
{
7+
// AMD. Register as an anonymous module.
8+
define(['Rekord'], function(Rekord) { // jshint ignore:line
9+
return factory(root, Rekord);
10+
});
11+
}
12+
else if (typeof module === 'object' && module.exports) // jshint ignore:line
13+
{
14+
// Node. Does not work with strict CommonJS, but
15+
// only CommonJS-like environments that support module.exports,
16+
// like Node.
17+
module.exports = factory(global, require('Rekord')); // jshint ignore:line
18+
}
19+
else
20+
{
21+
// Browser globals (root is window)
22+
root.Rekord = factory(root, root.Rekord);
23+
}
24+
}(this, function(global, Rekord, undefined)
325
{
426

527
if ( !global.console )
@@ -295,4 +317,6 @@
295317
}
296318
};
297319

298-
})( this, this.Rekord );
320+
return Rekord;
321+
322+
}));

build/rekord-debug.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)