[Fixed Position] Add spec for selection

Add spec for selection manager for layout and fixed position
views, WTD-879.
This commit is contained in:
Victor Woeltjen
2015-02-19 13:06:55 -08:00
parent 8c653d39d7
commit 7882dd1401
2 changed files with 79 additions and 0 deletions

View File

@ -7,6 +7,12 @@ define(
/**
* Tracks selection state for Layout and Fixed Position views.
* This manages and mutates the provided selection array in-place,
* and takes care to only modify the array elements it manages
* (the view's proxy, and the single selection); selections may be
* added or removed elsewhere provided that similar care is taken
* elsewhere.
*
* @param {Array} selection the selection array from the view's scope
* @param [proxy] an object which represents the selection of the view
* itself (which handles view-level toolbar behavior)