Don't try to use undefined response
This commit is contained in:
1 parent
5180426fc1
commit
700713abcf
1 file changed
+2
@@ -43,6 +43,8 @@ var SuggestList = new Class({
|
|||||||
fill: function(json){
|
fill: function(json){
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
if(!json) return;
|
||||||
|
|
||||||
Object.each(json.suggestions, function(movie){
|
Object.each(json.suggestions, function(movie){
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user