fix: broken code after refactor

test-unit-sauce
Brian Ford 10 years ago
parent 7421f9196f
commit 989749f4d3

@ -123,7 +123,7 @@ var instument = function instument (window) {
deps: []
};
var instrumentedAppId = window.location.host + '~' + Date.now() + '~' Math.random();
var instrumentedAppId = window.location.host + '~' + Date.now() + '~' + Math.random();
// Utils

@ -21,19 +21,17 @@ var interestingAttributes = {
// body...
},
'ng-repeat': function (value) {
match = /(.+) in/.exec(val);
lhs = match[1];
match = /(.+) in/.exec(val);
lhs = match[1];
match = lhs.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);
valueIdentifier = match[3] || match[1];
keyIdentifier = match[2];
if (keyIdentifier) {
name.lhs = valueIdentifier + '["' + scope[keyIdentifier] + '"]' + summarizeObject(scope[valueIdentifier]);
} else {
name.lhs = valueIdentifier + summarizeObject(scope[valueIdentifier]);
}
match = lhs.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);
valueIdentifier = match[3] || match[1];
keyIdentifier = match[2];
if (keyIdentifier) {
name.lhs = valueIdentifier + '["' + scope[keyIdentifier] + '"]' + summarizeObject(scope[valueIdentifier]);
} else {
name.lhs = valueIdentifier + summarizeObject(scope[valueIdentifier]);
}
}
}