@@ -92,7 +92,7 @@ function Color(red, green, blue, alpha) {
92
92
* @instance
93
93
* @return {string }
94
94
*/
95
- this . toHexString = function ( ) {
95
+ this . toHexString = function toHexString ( ) {
96
96
var redString = Math . round ( this . red ) . toString ( 16 ) ;
97
97
var greenString = Math . round ( this . green ) . toString ( 16 ) ;
98
98
var blueString = Math . round ( this . blue ) . toString ( 16 ) ;
@@ -113,7 +113,7 @@ function Color(red, green, blue, alpha) {
113
113
* @memberof axe.commons.color.Color
114
114
* @instance
115
115
*/
116
- this . parseString = function ( colorString ) {
116
+ this . parseString = function parseString ( colorString ) {
117
117
// IE occasionally returns named colors instead of RGB(A) values
118
118
if ( standards . cssColors [ colorString ] || colorString === 'transparent' ) {
119
119
const [ red , green , blue ] = standards . cssColors [ colorString ] || [ 0 , 0 , 0 ] ;
@@ -144,7 +144,7 @@ function Color(red, green, blue, alpha) {
144
144
* @instance
145
145
* @param {string } rgb The string value
146
146
*/
147
- this . parseRgbString = function ( colorString ) {
147
+ this . parseRgbString = function parseRgbString ( colorString ) {
148
148
// IE can pass transparent as value instead of rgba
149
149
if ( colorString === 'transparent' ) {
150
150
this . red = 0 ;
@@ -164,7 +164,7 @@ function Color(red, green, blue, alpha) {
164
164
* @instance
165
165
* @param {string } rgb The string value
166
166
*/
167
- this . parseHexString = function ( colorString ) {
167
+ this . parseHexString = function parseHexString ( colorString ) {
168
168
if ( ! colorString . match ( hexRegex ) || [ 6 , 8 ] . includes ( colorString . length ) ) {
169
169
return ;
170
170
}
@@ -231,7 +231,7 @@ function Color(red, green, blue, alpha) {
231
231
* @instance
232
232
* @return {number } The luminance value, ranges from 0 to 1
233
233
*/
234
- this . getRelativeLuminance = function ( ) {
234
+ this . getRelativeLuminance = function getRelativeLuminance ( ) {
235
235
var rSRGB = this . red / 255 ;
236
236
var gSRGB = this . green / 255 ;
237
237
var bSRGB = this . blue / 255 ;
0 commit comments