I have a function, imgCk() that needs to run after another function htFix() has finished w/ it's promise function.
- function htFix() {
- $('div[class^="searchercustomcontent"]').promise().done(function() {
- ...
- });
- }
- function imgCk() {
- $.when( htFix() ).done(function() {
- ...
- });
- }
I call out htFix(); & then imgCk(); in the code.
When I look at the console imgCk() logs seem to be running first, instead of last.