SteveSanderson / knockout-es5

Knockout.js meets ECMAScript 5 properties
158 stars 39 forks source link

Add options #25

Closed jbblanchet closed 4 years ago

jbblanchet commented 9 years ago

Right now the second parameter is a list the properties to observe. I think this should instead be an option object, so we can add more features easily without breaking compatibility. Sample features that could be added are recursion (see #24), properties to exclude instead of to include, custom property filter function (for example to exclude all properties beginning by _ or $), and plenty of other way better ideas.

archangel-irk commented 9 years ago

It is a good idea and I'll think about how to improve it.

unsafecode commented 9 years ago

+1

archangel-irk commented 9 years ago

Since 0.2.0-alpha added options deep and fields.