Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Set forceReload default value
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 7, 2015
1 parent 696aa92 commit e6bc9ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -83,7 +83,9 @@ var PydioDataModel = (function (_Observable) {
* @param forceReload Boolean If set to true, the node will be reloaded even if already loaded.
*/

PydioDataModel.prototype.requireContextChange = function requireContextChange(ajxpNode, forceReload) {
PydioDataModel.prototype.requireContextChange = function requireContextChange(ajxpNode) {
var forceReload = arguments[1] === undefined ? false : arguments[1];

if (ajxpNode == null) {
return;
}var path = ajxpNode.getPath();
Expand Down
Expand Up @@ -67,7 +67,7 @@ class PydioDataModel extends Observable{
* @param ajxpNode AjxpNode Target node, either an existing one or a fake one containing the target part.
* @param forceReload Boolean If set to true, the node will be reloaded even if already loaded.
*/
requireContextChange (ajxpNode, forceReload){
requireContextChange (ajxpNode, forceReload=false){
if(ajxpNode == null) return;
var path = ajxpNode.getPath();
if((path == "" || path == "/") && ajxpNode != this._rootNode){
Expand Down

0 comments on commit e6bc9ef

Please sign in to comment.