We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e6794e + 88c259c commit 01abd79Copy full SHA for 01abd79
cross-domain-ajax/jquery.xdomainajax.js
@@ -56,7 +56,7 @@ jQuery.ajax = (function(_ajax){
56
if (_success) {
57
// Fake XHR callback.
58
_success.call(this, {
59
- responseText: data.results[0]
+ responseText: (data.results[0] || '')
60
// YQL screws with <script>s
61
// Get rid of them
62
.replace(/<script[^>]+?\/>|<script(.|\s)*?\/script>/gi, '')
0 commit comments