Skip to content

Commit

Permalink
feat: revert to commonjs definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Ashworth committed Nov 17, 2015
1 parent e1e8447 commit cf010da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

var teardownEventCount = 0;

export function withBoundLifecycle() {
function withBoundLifecycle() {
// Use deprecated defaultAttrs() only if necessary
var defineDefaultAttributes = (this.attrDef ? this.attributes : this.defaultAttrs);
defineDefaultAttributes.call(this, {
Expand All @@ -28,7 +28,7 @@ export function withBoundLifecycle() {
});
}

export default function withChildComponents() {
function withChildComponents() {
/**
* Give every component that uses this mixin a new, unique childTeardownEvent
*/
Expand Down Expand Up @@ -73,3 +73,5 @@ withChildComponents.nextTeardownEvent = function () {
};

withChildComponents.withBoundLifecycle = withBoundLifecycle;

module.exports = withChildComponents;

0 comments on commit cf010da

Please sign in to comment.