Merge "Hygiene: Remove link element from LINK_ABANDON_*" into mpga

This commit is contained in:
jenkins-bot 2017-01-15 23:24:18 +00:00 committed by Gerrit Code Review
commit 5020424fbb
2 changed files with 2 additions and 7 deletions

View file

@ -208,16 +208,14 @@
* maybe keeping a origin: 'LINK'|'PREVIEW' field on the action payload for
* introspection on the devtools.
*
* @param {Element} el
* @return {Object}
* @return {Redux.Thunk}
*/
actions.linkAbandon = function ( el ) {
actions.linkAbandon = function () {
return function ( dispatch, getState ) {
var token = getState().preview.activeToken;
dispatch( timedAction( {
type: types.LINK_ABANDON_START,
el: el,
token: token
} ) );
@ -225,7 +223,6 @@
.then( function () {
dispatch( {
type: types.LINK_ABANDON_END,
el: el,
token: token
} );
} );

View file

@ -340,7 +340,6 @@
assert.ok( dispatch.calledWith( {
type: 'LINK_ABANDON_START',
el: that.el,
timestamp: mw.now(),
token: token
} ) );
@ -356,7 +355,6 @@
assert.ok(
dispatch.calledWith( {
type: 'LINK_ABANDON_END',
el: that.el,
token: token
} ),
'LINK_ABANDON_* share the same token.'