appDisplay: Don't call a non-existent onComplete

Follow up to commit 6bb905895c .

https://bugzilla.gnome.org/show_bug.cgi?id=745627
This commit is contained in:
Rui Matos 2015-03-04 18:58:14 +01:00
parent 0ebba112d7
commit 4ff489d24b

View File

@ -544,7 +544,8 @@ const AllView = new Lang.Class({
this._scrollView.reactive = false;
let completionFunc = Lang.bind(this, function() {
this._scrollView.reactive = true;
onComplete();
if (onComplete)
onComplete();
});
if (animationDirection == IconGrid.AnimationDirection.OUT &&