mrlannigan / node-akamai

Communication with Akamai's CCUAPI
MIT License
14 stars 8 forks source link

Call new AkamaiPurge when user does not #5

Closed matthewp closed 10 years ago

matthewp commented 10 years ago

Instead of throwing an error in AkamaiPurge when not called as a constructor, should instead just recursively call itself with new. This prevents the user from unnecessarily having to call it with new akamai.purge..., an easy mistake to make.