angular-selectize icon indicating copy to clipboard operation
angular-selectize copied to clipboard

value 'hasOwnProperty'

Open ArielKr opened this issue 9 years ago • 0 comments

Hi, it seems that if the user enters a key = 'hasOwnProperty' your code brakes. It replace the js hasOwnProperty function that runs within the same loop.

From your code: var key = hash_key(data[this.settings.valueField]); if (!key || this.options.hasOwnProperty(key)) return false; data.$order = data.$order || ++this.order; this.options[key] = data; return key;

ArielKr avatar Mar 03 '16 12:03 ArielKr