summaryrefslogtreecommitdiff
path: root/html/content/js/Utils/apiready.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/content/js/Utils/apiready.js')
-rw-r--r--html/content/js/Utils/apiready.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/html/content/js/Utils/apiready.js b/html/content/js/Utils/apiready.js
deleted file mode 100644
index 17f1ad4..0000000
--- a/html/content/js/Utils/apiready.js
+++ /dev/null
@@ -1,15 +0,0 @@
-define(function () {
- return function ($element, name) {
- return new Promise(function (resolve, reject) {
- var api = $element.data(name);
- if (api) {
- resolve(api);
- }
- else {
- $element.one(name + '.ready', function () {
- resolve($element.data(name));
- });
- }
- });
- };
-}); \ No newline at end of file