code: function(element, args) {
          if(!args)
              args = {};
          var eventName = args.eventName ? args.eventName : 'onElementHeight';
          var refreshDelay = args.refreshDelay ? args.refreshDelay : 500;
          var elmHeight;
  
          if(element)
              elmHeight = element.height();
          if(elmHeight && elmHeight > 0) {
              var e = jQuery.Event(eventName, {elementHeight: elmHeight});
              element.trigger(e);
          } else {
              setTimeout(function () {
                  eventElementHeight(element, args);
              }, refreshDelay);
          }
      }
docs: Method that can return an element's height through an event (event will be fired only when the element will have a positive height)