34 lines
879 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
According to the Backbone.js docs
____
The *changed* property is the internal hash containing all the attributes that have changed since the last set. Please do not update *changed* directly since its state is internally maintained by set. A copy of *changed* can be acquired from changedAttributes.
____
The ``++changed++`` property is involved in decisions about whether or not a collection should be resorted when it is updated. If you modify it manually, you can break the resorting of the collection.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,javascript]
2021-04-28 16:49:39 +02:00
----
myModel.changed = { myProperty: 1 }; // Non-compliant
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]