Shopify/twine — pull request #16 by celsodantas (2014-11-12 19:04:17+00:00)
Title: teardown should also kill bindingId

@qq99 @nsimmons @pushrax

## Problem:

If unbinding does not clear the `bindingId` of the node, rebinding it would reuse the same `key` and could result in `key` conflicting.

I noticed this in a bug with the `refresh-except` feature (in turbograft), everything in the page was getting new `bindingId` but the kept block was using old `bindingId`s, so new elements were being generated with the same `bindingId` resulting in a conflict.

## Solution:

Kill the `bindingId` on `unbind`. Rebinding it would re-generate a new key.