Skip to content

Commit 3dcb112

Browse files
committed
Merge pull request #30 from Miha-ha/commonjs
Commonjs
2 parents 7258c52 + e3fbcec commit 3dcb112

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Stats.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ var Stats = function () {
7878
break;
7979
}
8080

81-
}
81+
};
8282

8383
var updateGraph = function ( dom, value ) {
8484

8585
var child = dom.appendChild( dom.firstChild );
8686
child.style.height = value + 'px';
8787

88-
}
88+
};
8989

9090
return {
9191

@@ -141,3 +141,7 @@ var Stats = function () {
141141
}
142142

143143
};
144+
145+
if (typeof module === "object") {
146+
module.exports = Stats;
147+
}

0 commit comments

Comments
 (0)