Allowing complex var names;

Removing the else if block in order to allow complex var names on the left hand of the assignment.
This commit is contained in:
Sean Gates 2015-03-18 16:46:33 -07:00
parent d58fe0585d
commit 0d7ff3ea4e

View File

@ -27,9 +27,6 @@ AssignNode.prototype = {
var value = this.getProperty('value');
if (!varName) {
this.addError('"var" attribute is required');
} else if (!varNameRegExp.test(varName)) {
this.addError('Invalid variable name of "' + varName + '"');
varName = null;
}
if (!value) {
this.addError('"value" attribute is required');