Skip to content

Commit c67b822

Browse files
committed
Merge pull request #448 from repl-andrew-ovens/master
Add support for petal(ember-cli) module definition
2 parents 7b0c73d + 1bc36e1 commit c67b822

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

validator.js

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
module.exports = definition();
2727
} else if (typeof define === 'function' && typeof define.amd === 'object') {
2828
define(definition);
29+
} else if (typeof define === 'function' && typeof define.petal === 'object') {
30+
define(name, [], definition);
2931
} else {
3032
this[name] = definition();
3133
}

0 commit comments

Comments
 (0)