Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
Updating grunt builds
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed May 20, 2012
1 parent 23636d3 commit 985525d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
23 changes: 16 additions & 7 deletions dist/es6-module-loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! es6-module-loader - v0.1.0 - 5/19/2012
/*! es6-module-loader - v0.1.0 - 5/20/2012
* https://github.com/addyosmani/es6-module-loader
* Copyright (c) 2012 Luke Hogan, Addy Osmani; Licensed MIT */

Expand Down Expand Up @@ -66,11 +66,16 @@
var self = this;
this._fetch(url, this._baseURL, {
fulfill: function (src) {
var actualSrc = self._translate(src, url, self._baseURL, key);

var actualSrc, evalSrc;

actualSrc = self._translate(src, url, self._baseURL, key);
if (self._strict) {
actualSrc = "'use strict';\n" + actualSrc;
}
eval(actualSrc);

evalSrc = eval(actualSrc);
self.set(url, evalSrc);
callback(self._mios[key]);
},
redirect: function (url, baseURL) {
Expand Down Expand Up @@ -147,12 +152,15 @@


function Module(o) {
if (o == null) throw new TypeError("Expected object");
var obj = Object(o);

if (o === null) throw new TypeError("Expected object");
var obj = Object(o);
if (obj instanceof Module) {
return obj;
return obj;
} else {
var mio = Object.create(null);

var mio = Object.create(null);

for (var key in obj) {
(function (key) {
Object.defineProperty(mio, key, {
Expand All @@ -164,6 +172,7 @@
});
})(key);
}

return mio;
}
};
Expand Down
4 changes: 2 additions & 2 deletions dist/es6-module-loader.min.js

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

0 comments on commit 985525d

Please sign in to comment.