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

Allow Object Options

Open thuey opened this issue 10 years ago • 3 comments

I have a couple of cases where the options I want to use are wrapped in an object, instead of an array. This line breaks it, though:

data = angular.isArray(data) ? data : [data]

Can you allow objects by changing it to:

data = angular.isArray(data) || angular.isObject(data) ? data : [data]

thuey avatar Feb 19 '15 17:02 thuey

+1

Bana0615 avatar Feb 26 '15 16:02 Bana0615

+1

adamhadani avatar Mar 01 '15 18:03 adamhadani

+1

masimplo avatar Mar 02 '15 08:03 masimplo