Skip to content

Commit 01abd79

Browse files
committed
Merge pull request padolsey-archive#15 from mrchief/master
Exception handled when no results are returned
2 parents 6e6794e + 88c259c commit 01abd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cross-domain-ajax/jquery.xdomainajax.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jQuery.ajax = (function(_ajax){
5656
if (_success) {
5757
// Fake XHR callback.
5858
_success.call(this, {
59-
responseText: data.results[0]
59+
responseText: (data.results[0] || '')
6060
// YQL screws with <script>s
6161
// Get rid of them
6262
.replace(/<script[^>]+?\/>|<script(.|\s)*?\/script>/gi, '')

0 commit comments

Comments
 (0)