code: function (elm, name, defaultVal) {
          var self = this, hook, value;
  
          elm = self.$$(elm);
  
          if (elm.length) {
            hook = self.attrHooks[name];
  
            if (hook && hook.get) {
              value = hook.get(elm, name);
            } else {
              value = elm.attr(name);
            }
          }
  
          if (typeof value == 'undefined') {
            value = defaultVal || '';
          }
  
          return value;
        }
docs: Returns the specified attribute by name.
  
  @method getAttrib
  @param {String/Element} elm Element string id or DOM element to get attribute from.
  @param {String} name Name of attribute to get.
  @param {String} defaultVal Optional default value to return if the attribute didn't exist.
  @return {String} Attribute value string, default value or null if the attribute wasn't found.