From 4d1dce2a690347fe681f379bfdd99128f79909f9 Mon Sep 17 00:00:00 2001 From: Xaver Date: Fri, 7 Jun 2019 10:35:00 +0200 Subject: [PATCH] return callbacks To create custom asynchrony methods the callbacks should be accessible from outside so [this works](https://github.com/richtabor/MerlinWP/blob/5658bee1b8ede2da7c8d2171c79b7d235fc79f10/assets/js/merlin.js#L78) as well. --- assets/js/merlin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/merlin.js b/assets/js/merlin.js index 39c2b6b..093c5ff 100755 --- a/assets/js/merlin.js +++ b/assets/js/merlin.js @@ -546,7 +546,8 @@ function PluginManager(){ callback: function(func){ console.log(func); console.log(this); - } + }, + callbacks: callbacks, } })(jQuery);