Cleanup iterator template, make _.isEqual avoid the JScript [[DontEnum]] bug and add unit tests.

Former-commit-id: 1325f2184a8572ba688bcf697892782b8a0972e7
This commit is contained in:
John-David Dalton
2012-05-08 17:11:32 -04:00
parent 5c82104d7b
commit ccbf965bd9
5 changed files with 201 additions and 168 deletions

View File

@@ -170,8 +170,8 @@
// minify delimiter regexps
result = result
.replace(/('evaluate':)[^,}]+/, '$1/@([\\s\\S]+?)%/g')
.replace(/('interpolate':)[^,}]+/, '$1/#([\\s\\S]+?)%/g');
.replace(/('evaluate':)[^,}]+/, '$1/@([^%]+)%/g')
.replace(/('interpolate':)[^,}]+/, '$1/#([^%]+)%/g');
}
else {
// add brackets to whitelisted properties so Closure Compiler won't mung them.