Skip to content

Commit

Permalink
Add YUI 3.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles Elam committed Jul 9, 2012
1 parent f9ec439 commit 3ad2aaa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
3 changes: 3 additions & 0 deletions es5-shim.js
Expand Up @@ -29,6 +29,9 @@
// RequireJS
if (typeof define == "function") {
define(definition);
// YUI3
} else if (typeof YUI == "function") {
YUI.add("es5", definition);
// CommonJS and <script>
} else {
definition();
Expand Down
34 changes: 18 additions & 16 deletions es5-shim.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3ad2aaa

Please sign in to comment.