Permalink
Browse files

Fix syntax error in Adobe ExtendScript

Adobe ExtendScript parses this incorrectly. Yes, that's super lame.
  • Loading branch information...
1 parent 12696f3 commit b4ead8c33cbf6899ecb6d501193997bf9fcaa9a1 @subtleGradient committed Nov 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 es5-shim.js
View
@@ -872,7 +872,7 @@ if("".substr && "0b".substr(-1) !== "b") {
String.prototype.substr = function(start, length) {
return string_substr.call(
this,
- start < 0 ? (start = this.length + start) < 0 ? 0 : start : start,
+ start < 0 ? ((start = this.length + start) < 0 ? 0 : start) : start,
length
);
}

0 comments on commit b4ead8c

Please sign in to comment.