try fix
This commit is contained in:
@@ -127,8 +127,8 @@ XmlParser.prototype.parse = function (chunk) {
|
|||||||
var rpath = resourcePath.substring(0, index)
|
var rpath = resourcePath.substring(0, index)
|
||||||
|
|
||||||
if (rpath === state.currentPath) {
|
if (rpath === state.currentPath) {
|
||||||
if (scope.opts.emitOnNodeName) scope.emit(name, state.object)
|
|
||||||
scope.push(state.object)
|
scope.push(state.object)
|
||||||
|
if (scope.opts.emitOnNodeName) scope.emit(name, state.object)
|
||||||
state.object = {}
|
state.object = {}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user