MDL-57139 core/fragment: simplify promises and always return
authorDan Poltawski <dan@moodle.com>
Tue, 10 Jan 2017 17:29:31 +0000 (17:29 +0000)
committerDan Poltawski <dan@moodle.com>
Thu, 1 Jun 2017 09:27:59 +0000 (10:27 +0100)
commite58ecca175a04c14f0e3ff3f5333290e3383d2b8
treec57878c63ee0085fe8b4004743b10579f7c017c8
parentd85d7831d0a8d93bf05b4622cc60f76d60a09816
MDL-57139 core/fragment: simplify promises and always return

We can remove the DIY promise handling because the ajax request can just
return a promise itself.
lib/amd/src/fragment.js