Use charAt rather than string index
Older versions of IE do not support [] access to string contents so charAt must be used. Fixes #677
This commit is contained in:
@@ -19,7 +19,8 @@ var AST = {
|
||||
this.hash = hash;
|
||||
this.strip = strip;
|
||||
|
||||
var escapeFlag = open[3] || open[2];
|
||||
// Must use charAt to support IE pre-10
|
||||
var escapeFlag = open.charAt(3) || open.charAt(2);
|
||||
this.escaped = escapeFlag !== '{' && escapeFlag !== '&';
|
||||
|
||||
var id = this.id = rawParams[0];
|
||||
|
||||
Reference in New Issue
Block a user