Skip to content

Commit

Permalink
Add support for petal module definition. This is used by ember-cli. M…
Browse files Browse the repository at this point in the history
…inified with uglifyjs(compress, mangle)
  • Loading branch information
repl-andrew-ovens committed Oct 27, 2015
1 parent 7b0c73d commit 1bc36e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
module.exports = definition();
} else if (typeof define === 'function' && typeof define.amd === 'object') {
define(definition);
} else if (typeof define === 'function' && typeof define.petal === 'object') {
define(name, [], definition);
} else {
this[name] = definition();
}
Expand Down
Loading

0 comments on commit 1bc36e1

Please sign in to comment.