Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clarify eval scope

  • Loading branch information...
commit e16f3790668b7c72663bbada034f6e6c9489083b 1 parent 63878c4
@dmp42 dmp42 authored mislav committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/ajax.js
View
1  src/ajax.js
@@ -202,6 +202,7 @@
result = xhr.responseText
try {
+ // http://perfectionkills.com/global-eval-what-are-the-options/
if (dataType == 'script') (1,eval)(result)
else if (dataType == 'xml') result = xhr.responseXML
else if (dataType == 'json') result = blankRE.test(result) ? null : $.parseJSON(result)
Please sign in to comment.
Something went wrong with that request. Please try again.