Hi Marco,
> In your opinion, the javascript code i have written, performs a correct cleanup of the previewed
> objects, while cancelling the command
> or call the main function more then one time (for ex. when the user modify the input values) ?
Yes that looks correct - calling factory.cancel() like that should make each factory erase the objects that they had generated on previous calls to factory.update().
- Michael
|