Skip to content

Commit

Permalink
Updating .gitignore and giving default values to some functions
Browse files Browse the repository at this point in the history
  • Loading branch information
GuenoleK committed Dec 8, 2016
1 parent dae5cae commit 567b955
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
npm-debug.log
node_modules
dist
/application
/component
/definition
/dispatcher
/exception
/history
/list
/message
/network
/reference
/router
/search
/site-description
/store
/translation
/user
/util
39 changes: 39 additions & 0 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/reference/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function loadList(listDesc) {
* @param {string} listName - The name of the list to load.
* @param {object} args - Argument to provide to the function.
*/
function loadListByName(listName, args, skipCache) {
function loadListByName(listName, args, skipCache = false) {
checkIsString('listName', listName);
const configurationElement = getElement(listName);
if (typeof configurationElement !== `function`) {
Expand All @@ -70,7 +70,7 @@ function loadListByName(listName, args, skipCache) {
//Load many lists by their names. `refHelper.loadMany(['list1', 'list2']).then(success, error)`
// Return an array of many promises for all the given lists.
// Be carefull, if there is a problem for one list, the error callback is called.
function loadMany(names, skipCache) {
function loadMany(names, skipCache = false) {
if(names === undefined){
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/reference/built-in-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var dispatcher = require('../dispatcher');
* @param {array} referenceNames - An array which contains the name of all the references to load.
* @returns {Promise} - The promise of loading all the references.
*/
function builtInReferenceAction(referenceNames, skipCache) {
function builtInReferenceAction(referenceNames, skipCache = false) {
return () => {
if(!referenceNames) {
return undefined;
Expand Down

0 comments on commit 567b955

Please sign in to comment.