defineInstanceKey
Create a key for all instances of a constructor.
defineInstanceKey(cls, key, properties)
Define the property key on the prototype of the constructor cls using the symbolic
property [can-symbol/symbols/defineInstanceKey @can.defineInstanceKey] if it exists; otherwise
use Object.defineProperty() to define the property. The property definition
Parameters
- cls
{function}:a Constructor function
- key
{String}:the String or Symbol key to set.
- properties
{Object}:a JavaScript property descriptor