JavaScript Inheritance and Object Programming

Coding Tutorial, Chapter 5f

Customize Properties

© 21 July, 2013, Martin Rinehart


Results

Buttons with default borders on screen.

Code

Begin by adding Button border data to the DEFAULTS object.



Then have the Button.init() method use Box.set_borders() to add these values (just before the end).



Feedback: Martin Rinehart at gmail dot com.

# # #