Fixed code example in documentation to access attributes property of a c...

...omponent.

Documentation code example states component's attr method is a function, while it's an object and properties should be accessed accordingly.