code: function(color){
              normalizedColor = null;
              if(color.charAt(0)==="#"){
                  if(color.length===4){
                      normalizedColor = color + color.charAt(1) + color.charAt(2) + color.charAt(3);
                  }else{
                      normalizedColor = color;
                  }
              }else{
                  try{
                      normalizedColor = this.getHEX(color);
                  }catch(e){}
              }
              return normalizedColor;
          }
docs: Take an arbitrary RGB or HEX in long or shorthand notation and normalize to standard long HEX form with leading '#' character.
  
  @param {String} color A RGB or HEX color value in long or short notation.
  @type String or null
  @return A fully qualified 6 character hexadecimal value or with leading '#' character or null if it can't be processed.