Update us to the latest Backbone.js
Review Request #9694 — Created Feb. 23, 2018 and submitted
This change moves us over to Backbone 1.3.3. There are three changes
to the API that required updates:
this.options
is no longer set when initializing views, and has to be
done manually if desired. We only had about 10 views that actually
usedthis.options
, so this isn't too invasive. I've updated
documentation where our docs were already in the new style, and
otherwise left it the same for old code (which will be updated for our
new doc standards in due time).- Callbacks from
Model.destroy()
are now asynchronous. This doesn't
actually affect the UI at all, but did affect some unit tests which were
written with the assumption that it was synchronous. Events.listenTo
no longer callsEvents.on
, instead delegating to
an internal function. I've updated the test that checked this to instead
check the internal listener state (which is probably about as fragile).
- Ran js-tests.
- Smoke tested the UI.
Description | From | Last Updated |
---|---|---|
Col: 29 Expected '===' and instead saw '=='. |
reviewbot | |
Col: 30 Expected '===' and instead saw '=='. |
reviewbot | |
Col: 22 Expected '{' and instead saw 'Class'. |
reviewbot | |
Col: 7 'cb' was used before it was defined. |
reviewbot | |
Col: 33 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 63 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 31 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 7 'modelMatcher' was used before it was defined. |
reviewbot | |
Col: 80 Expected '{' and instead saw 'opts'. |
reviewbot | |
Col: 7 'internalOn' was used before it was defined. |
reviewbot | |
Col: 15 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 7 'onApi' was used before it was defined. |
reviewbot | |
Col: 22 Expected '{' and instead saw 'listening'. |
reviewbot | |
Col: 24 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 23 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 23 Expected '{' and instead saw 'break'. |
reviewbot | |
Col: 7 'offApi' was used before it was defined. |
reviewbot | |
Col: 18 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 22 Expected '{' and instead saw 'break'. |
reviewbot | |
Col: 47 Expected '===' and instead saw '=='. |
reviewbot | |
Col: 54 Expected '{' and instead saw 'callback'. |
reviewbot | |
Col: 7 'onceMap' was used before it was defined. |
reviewbot | |
Col: 38 Expected '{' and instead saw 'args'. |
reviewbot | |
Col: 7 'triggerApi' was used before it was defined. |
reviewbot | |
Col: 32 Expected '{' and instead saw 'allEvents'. |
reviewbot | |
Col: 19 Expected '{' and instead saw 'triggerEvents'. |
reviewbot | |
Col: 22 Expected '{' and instead saw 'triggerEvents'. |
reviewbot | |
Col: 32 Expected '{' and instead saw '('. |
reviewbot | |
Col: 29 Expected '{' and instead saw 'this'. |
reviewbot | |
Col: 38 Expected '{' and instead saw 'this'. |
reviewbot | |
Col: 29 Expected '===' and instead saw '=='. |
reviewbot | |
Col: 30 Expected '===' and instead saw '=='. |
reviewbot | |
Col: 22 Expected '{' and instead saw 'Class'. |
reviewbot | |
Col: 7 'cb' was used before it was defined. |
reviewbot | |
Col: 33 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 63 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 31 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 7 'modelMatcher' was used before it was defined. |
reviewbot | |
Col: 80 Expected '{' and instead saw 'opts'. |
reviewbot | |
Col: 7 'internalOn' was used before it was defined. |
reviewbot | |
Col: 15 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 7 'onApi' was used before it was defined. |
reviewbot | |
Col: 22 Expected '{' and instead saw 'listening'. |
reviewbot | |
Col: 24 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 23 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 23 Expected '{' and instead saw 'break'. |
reviewbot | |
Col: 7 'offApi' was used before it was defined. |
reviewbot | |
Col: 18 Expected '{' and instead saw 'return'. |
reviewbot | |
Col: 22 Expected '{' and instead saw 'break'. |
reviewbot | |
Col: 47 Expected '===' and instead saw '=='. |
reviewbot | |
Col: 54 Expected '{' and instead saw 'callback'. |
reviewbot | |
Col: 7 'onceMap' was used before it was defined. |
reviewbot | |
Col: 38 Expected '{' and instead saw 'args'. |
reviewbot | |
Col: 7 'triggerApi' was used before it was defined. |
reviewbot | |
Col: 32 Expected '{' and instead saw 'allEvents'. |
reviewbot | |
Col: 19 Expected '{' and instead saw 'triggerEvents'. |
reviewbot | |
Col: 22 Expected '{' and instead saw 'triggerEvents'. |
reviewbot | |
Col: 32 Expected '{' and instead saw '('. |
reviewbot | |
Col: 29 Expected '{' and instead saw 'this'. |
reviewbot | |
Col: 38 Expected '{' and instead saw 'this'. |
reviewbot |
- Branch:
-
release-4.0.xmaster
- Commit:
-
7451ab4bd72a11976731e0bc3fadb268aa84b037a665c889b4c776d7f9691d1b0db533b671b9b779
- Diff:
-
Revision 2 (+1070 -565)
Checks run (1 failed, 1 succeeded)
JSHint
-
Warning: Showing 30 of 84 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-