1

I have a problem using getFillPatternX. When I try:

console.log(polyTop.getFillPatternX);

The console output is:

function (){var a=this.attrs[b];return void 0===a?c:a} 

I´ve expected a number and not this piece of code. Is this a bug or am I not using it correctly?

Nagaraj S
  • 13,316
  • 6
  • 32
  • 53
Zuyas
  • 182
  • 1
  • 1
  • 17

1 Answers1

0

return void 0===a?c:a evaluates to

if(undefined === a) {
   return c;
}
else {
   return a;
}

See also:

Or are you having problems calling the method? If that's what you wanted to do, then you forgot the brackets: getFillPatternX()

Community
  • 1
  • 1
YMMD
  • 3,730
  • 2
  • 32
  • 43