summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-02-05 10:15:47 +0000
committerXavier Morel <xmo@odoo.com>2019-02-18 08:55:57 +0000
commit3f8d20b7785af4749e852461f0bd8a077b52e87e (patch)
tree77f64e4cf3a1dc5fa98c4502f8e681d3c6c800c5 /addons/web_editor/static/src/js
parentcca26f7952826601e9119478ac0edc30859d7f6a (diff)
[FIX] web_editor: various levels of broken in docstrings
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/wysiwyg/plugin/helper.js4
-rw-r--r--addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js4
-rw-r--r--addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js1
3 files changed, 2 insertions, 7 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/helper.js b/addons/web_editor/static/src/js/wysiwyg/plugin/helper.js
index 68542d7a4f8..0fe576adf8e 100644
--- a/addons/web_editor/static/src/js/wysiwyg/plugin/helper.js
+++ b/addons/web_editor/static/src/js/wysiwyg/plugin/helper.js
@@ -125,7 +125,7 @@ var HelperPlugin = AbstractPlugin.extend({
* Returns the number of leading breakable space in the textNode.
* Note: returns 0 if the node is not a textNode.
*
- * @param {Node}
+ * @param {Node} node
*/
countLeadingBreakableSpace: function (node) {
if (!dom.isText(node)) {
@@ -704,7 +704,7 @@ var HelperPlugin = AbstractPlugin.extend({
/**
* Returns the node targeted by a path
*
- * @param {Object[]} list of object (tagName, offset)
+ * @param {Object[]} path list of object (tagName, offset)
* @returns {Node}
*/
fromPath: function (path) {
diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js
index 9de5c6b4cb7..be6ac41e5cb 100644
--- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js
+++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js
@@ -193,10 +193,6 @@ Wysiwyg.include({
*
* @param {Node} [DOM]
* @returns {Object}
- * @returns {Node} sc - start container
- * @returns {Number} so - start offset
- * @returns {Node} ec - end container
- * @returns {Number} eo - end offset
*/
Wysiwyg.getRange = function (DOM) {
var summernote = (DOM.defaultView || DOM.ownerDocument.defaultView)._summernoteSlave || _summernoteMaster;
diff --git a/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js b/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js
index 5df48ebf2f9..f88ae46376f 100644
--- a/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js
+++ b/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js
@@ -50,7 +50,6 @@ Wysiwyg.include({
* snippets can by url begin with '/' or an view xml_id.
*
* @override
- * @param {string} [options.snippets]
*/
start: function () {
var self = this;