code: function (productType, color) {
              return color && productTypeToColorMap[productType.$.id] && productTypeToColorMap[productType.$.id].hasOwnProperty(color.toString());
          }
docs: *
  Returns true of the productType has the given color
  @param {sprd.model.ProductType} productType
  @param {js.type.Color} color
  @returns {*|boolean}