File manager - Edit - /usr/local/cpanel/3rdparty/share/promise/3.5.5/docs/docs/api/promise.noconflict.md
Back
--- layout: api id: promise.noconflict title: Promise.noConflict --- [← Back To API Reference](/docs/api-reference.html) <div class="api-code-section"><markdown> ##Promise.noConflict ```js Promise.noConflict() -> Object ``` This is relevant to browser environments with no module loader. Release control of the `Promise` namespace to whatever it was before this library was loaded. Returns a reference to the library namespace so you can attach it to something else. ```html <!-- the other promise library must be loaded first --> <script type="text/javascript" src="/scripts/other_promise.js"></script> <script type="text/javascript" src="/scripts/bluebird_debug.js"></script> <script type="text/javascript"> //Release control right after var Bluebird = Promise.noConflict(); //Cast a promise from some other Promise library using the Promise namespace to Bluebird: var promise = Bluebird.resolve(new Promise()); </script> ``` </markdown></div> <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_title = "Promise.noConflict"; var disqus_shortname = "bluebirdjs"; var disqus_identifier = "disqus-id-promise.noconflict"; (function() { var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true; dsq.src = "//" + disqus_shortname + ".disqus.com/embed.js"; (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings