/**
* jQuery Async Me
* Un plug-in jQuery pour charger de manière asynchrone vos contenu multimédia.
* http://github.com/Jok3rDev/async-me
*
* Licensed under the MIT license.
* Copyright 2016 Fabrice Trimech
* https://github.com/Jok3rDev/
*/

(function($) {
  'use strict';

  var AsyncMe = function (element, options) {
    this.$element = $(element);
    this.options  = $.extend({}, $.fn.asyncMe.defaults, this.$element.data(), options);
  };

  AsyncMe.prototype.checkAttribute = function (element) {
    var check    = true;
    var $element = element;

    check &= Boolean($element.data('src') === undefined);
    check &= Boolean($element.data('src') != '');

    if (check) {
      this.promptError(1);
    }
    return check;
  };

  AsyncMe.prototype.promptError = function (id) {
    var ret = null;
    switch (id) {
      case 1:
        ret = "L'attribut data-src n'est pas correctement formaté.";
      break;
      case 2:
        ret = "L'élement du DOM définit n'est pas géré par le plug-in.";
      break;
      default:
        ret = "Une erreur est survenue.";
    }
    return console.error(ret);
  };

  var old = $.fn.asyncMe;
  $.fn.asyncMe = AsyncMe;

  $.fn.asyncMe = function (option, args) {
    return this.each(function () {
      var $this = $(this)
      , data = $this.data('asyncMe')
      , options = typeof option === 'object' && option;

      if(!data) $this.data( 'asyncMe', (data = new AsyncMe(this, options)));
      if( typeof option === 'string' && option == 'text' ){ data.setText( args ) }
    });
  }

  $.fn.asyncMe.Constructor = AsyncMe;

  $.fn.asyncMe.defaults = {
    timeOut : 500,
  }

  $.fn.asyncMe.noConflict = function () {
    $.fn.asyncMe = old;
    return this;
  }

})(window.jQuery);

@@ -1119,16 +1119,346 @@
 ;%0A  %7D;%0A%0A
+  AsyncMe.prototype.handlerElement = function (element) %7B%0A    var $element = element;%0A    var tag      = $element.tagName.toLowerCase();%0A    var ret      = false;%0A%0A    switch (tag) %7B%0A      case 'img':%0A      case 'iframe':%0A        ret = 'src';%0A        break;%0A      default:%0A        this.promptError(2);%0A    %7D%0A    return ret;%0A  %7D;%0A%0A
   var ol

Add handlerElement method