Cscott has uploaded a new change for review.
https://gerrit.wikimedia.org/r/230981
Change subject: Make ve.dm.example.postprocessAnnotations fluent
......................................................................
Make ve.dm.example.postprocessAnnotations fluent
Return the data array so that the method is chainable, like
ve.dm.example.preprocessAnnotations, and so you can do:
data = ve.dm.example.postprocessAnnotations( doc.getData(), doc.getStore() );
Change-Id: Ie81a834f784afe61d87222010c69750d6a1e062d
---
M tests/dm/ve.dm.example.js
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor
refs/changes/81/230981/1
diff --git a/tests/dm/ve.dm.example.js b/tests/dm/ve.dm.example.js
index 63567fa..5dae2de 100644
--- a/tests/dm/ve.dm.example.js
+++ b/tests/dm/ve.dm.example.js
@@ -59,6 +59,7 @@
*
* @param {Array} data Linear model data. Will be modified.
* @param {ve.dm.IndexValueStore} store Index-value store to resolve
annotations in
+ * @return {Array} The given `data` parameter.
*/
ve.dm.example.postprocessAnnotations = function ( data, store ) {
var i, j, key;
@@ -78,6 +79,7 @@
}
}
}
+ return data;
};
/**
--
To view, visit https://gerrit.wikimedia.org/r/230981
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie81a834f784afe61d87222010c69750d6a1e062d
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits