|
|
All the SVG code in this book has been verified to work on a PC with Internet Explorer. If you have significant ECMAScript experience, you'll notice that some error checking has been omitted from the ECMAScript functions. For example, you could enhance the code in the init() function so that it checks whether or not each variable is null after it has been assigned a reference to some other object. This error checking was omitted because the focus of this book is to present techniques for rendering graphics and to do so in a manner that is as clear and simple as possible. You can easily add the additional error checking if you are working in a production environment, where you might want to display a message in an ECMAScript pop-up alert in the event of an error.
|
|