Changing util.js to export an object

This allows the methods to be spied on in tests
This commit is contained in:
Jeff Avallone committed 2014-12-20 10:25:32 -05:00
1 parent 8a9a129856
commit 6c5b36f334
9 files changed
+31 -31

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { customEvent, normalizeBBox } from '../../util.js';
import util from '../../util.js';
import _ from 'lodash';
import Q from 'q';
@@ -107,7 +107,7 @@ export default class Node {
this.state.renderCounter--;
document.body.dispatchEvent(customEvent('updateStatus', {
document.body.dispatchEvent(util.customEvent('updateStatus', {
percentage: (this.state.maxCounter - this.state.renderCounter) / this.state.maxCounter
}));