git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added support for "first option is auto-selected in a drop-down" functionality.
[jquery.git]
/
src
/
ajax
/
ajax.js
diff --git
a/src/ajax/ajax.js
b/src/ajax/ajax.js
index
102c7f9
..
4fb63c0
100644
(file)
--- a/
src/ajax/ajax.js
+++ b/
src/ajax/ajax.js
@@
-785,7
+785,7
@@
jQuery.extend({
// Get the JavaScript object, if JSON is used.
if ( type == "json" )
- eval( "data = " + data );
+ data = eval("(" + data + ")");
// evaluate scripts within html
if ( type == "html" )