diff --git a/src/common.js b/src/common.js index 214ace4189..b369dc1630 100644 --- a/src/common.js +++ b/src/common.js @@ -2468,7 +2468,7 @@ }, register_icon: function(icon_name) { if (!icon_name) { - return jQuery.when(''); + return jQuery.Deferred().reject(); } else if ((icon_name in this.loaded_icons) || ~Sao.common.LOCAL_ICONS.indexOf(icon_name)) { return jQuery.when(this.get_icon_url(icon_name));