MDL-59784 core: Check for non-promises rather than string
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 23 Aug 2017 02:25:10 +0000 (10:25 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 23 Aug 2017 02:25:15 +0000 (10:25 +0800)
commite5bdf51ce5f6ef93a90a1fe29e604c01fe24acc6
treec62e8a56355bf8bc1c05acce3a55ecc0a089e86a
parent3e0df465db84a21a3fbd8d8fecc2878a50886fcd
MDL-59784 core: Check for non-promises rather than string

If a malformed value was passed, it may be that we can still display it.
We should not assume that, if a string is not passed, that we are
dealing with a promise.
lib/amd/build/modal.min.js
lib/amd/src/modal.js