Changing util.js to export an object

This allows the methods to be spied on in tests
This commit is contained in:
Jeff Avallone
2014-12-20 10:25:32 -05:00
parent 8a9a129856
commit 6c5b36f334
9 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { customEvent } from './util.js';
import util from './util.js';
import Parser from './parser/javascript.js';
import Snap from 'snapsvg';
import Q from 'q';
@@ -27,7 +27,7 @@ export default class Regexper {
event.preventDefault();
}
this.form.dispatchEvent(customEvent('submit'));
this.form.dispatchEvent(util.customEvent('submit'));
}
}