title: jquery isFunction deprecated
body: <p>I get a deprecated message. How should i rewrite the isFunction code in this jquery code?</p>
  <pre><code>    fit($img, ($.isFunction(specialMeasures) ? specialMeasures() : specialMeasures) || measures, method || dataFrame.fit || opts.fit, position || dataFrame.position || opts.position);
  
          function fit ($el, measuresToFit, method, position) {
             do your stuff
          }
  </code></pre>
  <p>Thank you</p>