Skip to content

Commit 341004c

Browse files
authored
Update jquery.loadJSON.js
Fix for issue with null json value
1 parent c77fe07 commit 341004c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.loadJSON.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
var $element = $(element);
271271

272272
// no object
273-
if (obj === undefined) {
273+
if (obj === undefined || obj === null) {
274274
// Do nothing
275275

276276
// branch

0 commit comments

Comments
 (0)