buberdds / angular-bootstrap-colorpicker

Native AngularJS colorpicker directive. No dependency on jQuery or jQuery plugin is required.
MIT License
419 stars 226 forks source link

Fixed string parser prototype methods issue #32

Closed WilliamRandol closed 10 years ago

WilliamRandol commented 10 years ago

(for var in array) { ... } loops on the object not the array, if you have added any functions to the Array Prototype these get included in the loop.

Simply added the .hasOwnProperty to ensure that the loop is only working on the Array values.

buberdds commented 10 years ago

Thanks!