Skip to content

Commit

Permalink
Merge pull request #448 from repl-andrew-ovens/master
Browse files Browse the repository at this point in the history
Add support for petal(ember-cli) module definition
  • Loading branch information
chriso committed Oct 27, 2015
2 parents 7b0c73d + 1bc36e1 commit c67b822
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 c67b822

Please sign in to comment.