Skip to content

Commit

Permalink
commit: chore(all): update build
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jul 27, 2016
1 parent d386200 commit e24bef2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion dist/amd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ define(['exports', './aurelia-event-aggregator'], function (exports, _aureliaEve
value: true
});
Object.keys(_aureliaEventAggregator).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
var _aureliaEventAggregator = require('./aurelia-event-aggregator');

Object.keys(_aureliaEventAggregator).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
Expand Down
52 changes: 26 additions & 26 deletions dist/system/aurelia-event-aggregator.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,32 @@ System.register(['aurelia-logging'], function (_export, _context) {



function includeEventsIn(obj) {
var ea = new EventAggregator();

obj.subscribeOnce = function (event, callback) {
return ea.subscribeOnce(event, callback);
};

obj.subscribe = function (event, callback) {
return ea.subscribe(event, callback);
};

obj.publish = function (event, data) {
ea.publish(event, data);
};

return ea;
}

_export('includeEventsIn', includeEventsIn);

function configure(config) {
config.instance(EventAggregator, includeEventsIn(config.aurelia));
}

_export('configure', configure);

return {
setters: [function (_aureliaLogging) {
LogManager = _aureliaLogging;
Expand Down Expand Up @@ -116,32 +142,6 @@ System.register(['aurelia-logging'], function (_export, _context) {
}());

_export('EventAggregator', EventAggregator);

function includeEventsIn(obj) {
var ea = new EventAggregator();

obj.subscribeOnce = function (event, callback) {
return ea.subscribeOnce(event, callback);
};

obj.subscribe = function (event, callback) {
return ea.subscribe(event, callback);
};

obj.publish = function (event, data) {
ea.publish(event, data);
};

return ea;
}

_export('includeEventsIn', includeEventsIn);

function configure(config) {
config.instance(EventAggregator, includeEventsIn(config.aurelia));
}

_export('configure', configure);
}
};
});
2 changes: 1 addition & 1 deletion dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ System.register(['./aurelia-event-aggregator'], function (_export, _context) {
var _exportObj = {};

for (var _key in _aureliaEventAggregator) {
if (_key !== "default") _exportObj[_key] = _aureliaEventAggregator[_key];
if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _aureliaEventAggregator[_key];
}

_export(_exportObj);
Expand Down

0 comments on commit e24bef2

Please sign in to comment.