DP2.0 snapshot:clear() is not working.

  1. snapshot:clear(0 is not working

When snapshot:clear() is called, below error is occurred . 

attempt to call method ‘clear’ (a nil value)

I’ve tested snapshot on window /mac simulator both.

Thanks,…

Oops, that’s a docs bug. It’s been renamed to snapshot:invalidate().

Thanks Walter.

It is working with invalidate.

Oops, that’s a docs bug. It’s been renamed to snapshot:invalidate().

Thanks Walter.

It is working with invalidate.