Skip to content

Commit

Permalink
Merge branch 'MDL-59784-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Aug 23, 2017
2 parents 959c620 + e5bdf51 commit b6f7efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/amd/build/modal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/amd/src/modal.js
Expand Up @@ -608,7 +608,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
*/
Modal.prototype.asyncSet = function(value, setFunction) {
var p = value;
if (typeof value === 'string') {
if (typeof value !== 'object' || !value.hasOwnProperty('then')) {
p = $.Deferred();
p.resolve(value);
}
Expand Down

0 comments on commit b6f7efb

Please sign in to comment.