1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

fix eslint error

This commit is contained in:
maria 2015-11-29 17:36:20 +02:00
parent 09b8b3ec51
commit 178f1dfd0e

View File

@ -417,7 +417,7 @@ function handleScopeAttribute(node, context, data) {
data.innerScope.outerMapping = _.zipObject(context.boundParams, context.boundParams); data.innerScope.outerMapping = _.zipObject(context.boundParams, context.boundParams);
_(node.attribs[scopeAttr]).split(';').invoke('trim').compact().forEach( function (scopePart) { _(node.attribs[scopeAttr]).split(';').invoke('trim').compact().forEach(function (scopePart) {
var scopeSubParts = _(scopePart).split(' as ').invoke('trim').value(); var scopeSubParts = _(scopePart).split(' as ').invoke('trim').value();
if (scopeSubParts.length < 2) { if (scopeSubParts.length < 2) {
throw RTCodeError.buildFormat(context, node, "invalid scope part '%s'", scopePart); throw RTCodeError.buildFormat(context, node, "invalid scope part '%s'", scopePart);