Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : IE EJS Issue?

$
0
0
No, the latest version on github does not have quotes around the name of the file.

It looks like this:
  1. myEval.call(out, 'this.fn = (function(_CONTEXT,_VIEW){' + out.out + '});\r\n//@ sourceURL=' + name + ".js");


Providing quotes around the the name of the file, allows this to work in IE9. It also seems to work in IE7 and IE8, but I tested that using IE9 and putting the browser into IE7 and 8 modes. 

Therefore, would a feature detect still be needed. Seems it's just the missing quotes causing IE to choke.

I mean I guess it wouldn't hurt.

Viewing all articles
Browse latest Browse all 3491

Trending Articles