We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b0c73d + 1bc36e1 commit c67b822Copy full SHA for c67b822
validator.js
@@ -26,6 +26,8 @@
26
module.exports = definition();
27
} else if (typeof define === 'function' && typeof define.amd === 'object') {
28
define(definition);
29
+ } else if (typeof define === 'function' && typeof define.petal === 'object') {
30
+ define(name, [], definition);
31
} else {
32
this[name] = definition();
33
}
0 commit comments