Skip to content

Commit

Permalink
use mod.exports when 'exec' emit
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Jul 17, 2014
1 parent bd888fe commit 1b1ff4e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions dist/runtime-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ Module.prototype.exec = function () {
mod.status = STATUS.EXECUTED

// Emit `exec` event
emit("exec", mod)
emit("exec", mod.exports)

return exports
}
Expand Down Expand Up @@ -602,7 +602,6 @@ Module.prototype.fetch = function(requestCache) {

fetchingList[requestUri] = true
callbackList[requestUri] = [mod]
console.log(data.charset)

// Emit `request` event for plugins such as text plugin
emit("request", emitData = {
Expand Down
2 changes: 1 addition & 1 deletion dist/runtime.js

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

3 changes: 1 addition & 2 deletions dist/sea-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ Module.prototype.exec = function () {
mod.status = STATUS.EXECUTED

// Emit `exec` event
emit("exec", mod)
emit("exec", mod.exports)

return exports
}
Expand Down Expand Up @@ -807,7 +807,6 @@ Module.prototype.fetch = function(requestCache) {

fetchingList[requestUri] = true
callbackList[requestUri] = [mod]
console.log(data.charset)

// Emit `request` event for plugins such as text plugin
emit("request", emitData = {
Expand Down
Loading

0 comments on commit 1b1ff4e

Please sign in to comment.