xwp / wp-settings-revisions

Settings Revisions plugin for WordPress
http://wordpress.org/plugins/settings-revisions/
Other
25 stars 7 forks source link

Eliminate dirty state if settings get restored to their original values #32

Open westonruter opened 10 years ago

westonruter commented 10 years ago

We can use _().isEqual() to do this. The settings in the Customizer currently flag something as a change if a new array or object is supplied even if it has the same value, since {} !== {}.