angular-selectize
angular-selectize copied to clipboard
value 'hasOwnProperty'
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;