Commit 3e80adf7 authored by Marc Duez's avatar Marc Duez

view.js: jsdoc

parent b8750e88
......@@ -24,7 +24,8 @@
/** View constructor <br>
* super-class for all view <br>
* contains all functions required by the model to interact with a view.
* contains all functions required by the model to interact with a view. <br>
* the model don't need anything else to handle a view.
* @class View
* @constructor
* */
......@@ -45,7 +46,8 @@ View.prototype = {
},
/**
* update all elements
* update all elements, perform a complete rebuild of the view <br>
* by default doing a updateElem() on each clone must do the job
* @abstract
* */
update: function () {
......@@ -55,7 +57,8 @@ View.prototype = {
},
/**
* update(size/style/position) a list of selected clones
* update(size/style/position) a list of selected clones <br>
* a slight function for operation who impact only a bunch of clones (merge/split/...)
* @abstract
* @param {integer[]} list - array of clone index
* */
......@@ -64,7 +67,8 @@ View.prototype = {
},
/**
* update(style only) a list of selected clones
* update(style only) a list of selected clones <br>
* a slight function for operation who impact only styles of clones (select/focus)
* @abstract
* @param {integer[]} list - array of clone index
* */
......@@ -73,7 +77,8 @@ View.prototype = {
},
/**
* resize view to match his div size
* resize view to match his div size <br>
* each view must be able to match the size of it's div
* @abstract
* */
resize : function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment