v1.1.0
版本发布时间: 2017-01-12 20:20:19
cibernox/ember-power-select最新发布版本:v8.3.1(2024-09-09 14:37:17)
First minor version bump in the 1.X cycle.
The main feature in this version is the usage of Ember.isEqual
to compare options instead of a simple ===
operator.
Using this comparator function is unlikely to break anyone code, but I thought that it deserved a minor bump.
Among of the advantages of this are:
- Better results when comparing dates. While in JS,
new Date(2017, 5, 5) !== new Date(2017, 5, 5)
because objects are compared by reference, this is hardly ever the intended behaviour.Ember.isEqual(new Date(2017, 5, 5), new Date(2017, 5, 5))
will correctly return true. - Allows the user to define their own way of comparing equality. If an object defines an
isEqual(other) {}
method it will be used instead of a simple===
. This allows users to decide that two POJOs should be considered equal if theirid
property is the same.