Is there a way to ensure that every new object I create has its own unique dataTransfer
property? For instance, when I try something like
Object.prototype.dataTransfer = new DataTransfer();
, I want a.dataTransfer.prop
to remain 1 even if b.dataTransfer.prop
is set to 2. How can I achieve this?
To give an example:
a.dataTransfer.prop
to continue being equal to 1, not 2.My goal context here involves attempting to modify WebKit and IE behavior related to the
.dataTransfer
object in drag and drop events for proper functionality.