docs: function(settings, scope) {
          var
            scopeOptions = angular.extend({}, scope),
            htHooks, i, length, attribute;
  
          settings = settings || {};
          angular.extend(scopeOptions, scope.settings || {});
          htHooks = this.getAvailableHooks();
  
          for (i = 0, length = htHooks.length; i < length; i++) {
            attribute = 'on' + ucFirst(htHooks[i]);
  
            if (typeof scopeOptions[htHooks[i]] === 'function' || typeof scopeOptions[attribute] === 'function') {
              settings[htHooks[i]] = scopeOptions[htHooks[i]] || scopeOptions[attribute];
            }
          }
  
          return settings;
        }