Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1842 from vogdb/issue-1842
Browse files Browse the repository at this point in the history
Layout.loadPage() should return Promise
  • Loading branch information
vogdb committed Jul 16, 2015
2 parents 0400ad8 + 1a0c354 commit 218b66f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/CM/Layout/Abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ var CM_Layout_Abstract = CM_View_Abstract.extend({

/**
* @param {String} path
* @return Promise
*/
loadPage: function(path) {
cm.event.trigger('navigate', path);
Expand All @@ -90,7 +91,7 @@ var CM_Layout_Abstract = CM_View_Abstract.extend({
this._timeoutLoading = this.setTimeout(function() {
this._$pagePlaceholder.html('<div class="spinner spinner-expanded" />');
}, 750);
this._loadPageThrottled(path);
return this._loadPageThrottled(path);
},

/**
Expand Down

0 comments on commit 218b66f

Please sign in to comment.