Call function after

Call function after

Hi All,

I have a function, imgCk() that needs to run after another function htFix() has finished w/ it's promise function.

I tried this:
  1.  function htFix() {
  2.     $('div[class^="searchercustomcontent"]').promise().done(function() {
  3.     ...
  4.     });
  5. }

  6.  function imgCk() {
  7.     $.when( htFix() ).done(function() {
  8.     ...
  9.     });
  10. }

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.

Thanks,  Bill