title: Getting "SCRIPT5007: Unable to get property 'on' of undefined or null reference" on IE
body: <p>Please check the below code. This is working fine on Firefox and chrome but giving following error on Internet Explorer 11. So the needed wordpress image pop-up feature is not working on IE.</p>
  
  <p><strong>SCRIPT5007: Unable to get property 'on' of undefined or null reference</strong></p>
  
  <pre><code>$(document).on('click', '.dfiFeaturedImage', function() {
  
          current = $(this);
  
          if( null !== current) {
  
              var dfi_uploader = wp.media({
  
                  title: WP_SPECIFIC.mediaSelector_title,
                  button: {
                      text: WP_SPECIFIC.mediaSelector_buttonText
                  },
                  multiple: false,
  
              }).on('select', function() {
  
                  var attachment = dfi_uploader.state().get('selection').first().toJSON(),
                      fullSize = attachment.url,
                      imgUrl = (typeof attachment.sizes.thumbnail === "undefined") ? fullSize : attachment.sizes.thumbnail.url,
                      imgUrlTrimmed, fullUrlTrimmed;
  
                  imgUrlTrimmed = imgUrl.replace(WP_SPECIFIC.upload_url, "");
                  fullUrlTrimmed = fullSize.replace(WP_SPECIFIC.upload_url, "");
  
                  var featuredBox = current.parent();
  
                  featuredBox.find('.fImg').attr({
                      'src': imgUrl,
                      'data-src': fullSize
                  });
  
                  featuredBox.find('.dfiFeaturedImage').addClass('hasFeaturedImage');
  
                  var dfiFeaturedImages = [imgUrlTrimmed, fullUrlTrimmed];
  
                  /**
                   * Check if medium sized image exists
                   * @type object
                   */
                  var medium = attachment.url;
                  if( typeof attachment.sizes.medium !== "undefined" ) {
                      medium = attachment.sizes.medium.url;
                  }
  
                  featuredBox.find('img').attr('src', medium).fadeIn(200);
                  featuredBox.find('input.dfiImageHolder').val(dfiFeaturedImages);
  
              }).open();  
          }
  
          return false;
  
      });
  </code></pre>