merge icon indicating copy to clipboard operation
merge copied to clipboard

Only merge own properties

Open greim opened this issue 11 years ago • 1 comments

The for ... in loop in this module should only copy a property if item.hasOwnProperty(key), otherwise it will copy prototype properties, resulting in unexpected and hard-to-find bugs.

greim avatar Aug 22 '14 16:08 greim

Stumbled upon one of those hard-to-find bugs - iterating over unwanted properties.

stebunovd avatar Mar 17 '15 00:03 stebunovd