Refactoring parser code to remove global state

This allows canceling an in-progress render and moves some of the
rendering code to a more appropriate location.
This commit is contained in:
Jeff Avallone
2014-12-18 11:13:15 -05:00
parent 7de0a6490a
commit 80ec29cd6b
5 changed files with 96 additions and 69 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ describe('regexper.js', function() {
});
describe('#documentKeypressListener', function() {
xdescribe('#documentKeypressListener', function() {
beforeEach(function() {
this.event = document.createEvent('Event');
@@ -267,7 +267,7 @@ describe('regexper.js', function() {
});
describe('#showExpression', function() {
xdescribe('#showExpression', function() {
beforeEach(function() {
this.renderPromise = Q.defer();
@@ -398,7 +398,7 @@ describe('regexper.js', function() {
});
describe('#renderRegexp', function() {
xdescribe('#renderRegexp', function() {
beforeEach(function() {
spyOn(parser, 'parse');