Comment #4 on issue 22 by nadir.seen.fire: JavaScript JSONTemplate cannot be prototyped http://code.google.com/p/json-template/issues/detail?id=22
Yes they are necessary. To make use of prototyping new needs to be made use of. Template() itself does not create an instance, so we check and if `this` is not an instance of what we are trying to create we pass it onto an actual construction of the object using new. This effectively means that just like Error() both Template() and new Template() do precisely the same thing. It's especially necessary for Template() to work, otherwise only `new Template()` can be used. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JSON Template" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/json-template?hl=en -~----------~----~----~----~------~----~------~--~---
