Search code examples
jsrenderjsviews

In jsViews there is a `setProperty()` method. How do I do `removeProperty()`?


In the jsRender documentation there is a method $.observable(object).setProperty() but how do I remove a property from the object observably?


Solution

  • There is a removeProperty() method. It is a recent addition to the API, so not yet in the documentation (to be added soon).

    $.observable(myObject).removeProperty("propertyName")