Skip to content

Commit

Permalink
GPII-3053: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jobara committed Aug 6, 2018
1 parent 2f48e5e commit 4f88b52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extension/src/content_scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
* jQuery object with 1 or more elements. If no elements found, it returns
* either an empty jQuery object or the default, if a default is provided.
*
* @param that {Object} - a fluid.viewComponent
* @param selectors {String|Array} - one or more selector names to search through in the order to try.
* @param {Component} that - a fluid.viewComponent
* @param {String|Array} selectorNames - one or more selector names to search through in the order to try.
* The selector names must correspond to selectors in the component's
* selectors block.
* @param deflt {Any} - a default value to use if no elements found for any of the selector names
* @returns {Any} - a jQuery object if found. If nothing found, either the deflt value or undefined is returned.
* @param {Any} deflt - a default value to use if no elements found for any of the selector names
* @return {Any} - a jQuery object if found. If nothing found, either the `deflt` value or undefined is returned.
*/
gpii.chrome.utils.findFirstSelector = function (that, selectorNames, deflt) {
selectorNames = fluid.makeArray(selectorNames);
Expand Down
5 changes: 5 additions & 0 deletions extension/src/lib/PrefsEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@
* Sends the prefsEditor.model to the store and fires onSave
* Overrides the default writeImpl functionality as all of the model, including the default values, must be sent
* to the store.
*
* @param {Component} that - the component
* @param {Object} modelToSave - the model to be written
*
* @return {Promise} promise - a promise that is resolved when the model is saved.
*/
gpii.chrome.prefs.extensionPanel.writeImpl = function (that, modelToSave) {
var promise = fluid.promise();
Expand Down

0 comments on commit 4f88b52

Please sign in to comment.