Skip to content

Commit d1880a1

Browse files
committed
added callback to list()
1 parent ad6fa54 commit d1880a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

elements/webdav.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,11 @@ apf.webdav = function(struct, tagName){
512512
* see {@link teleport.webdav.method.getProperties}
513513
*
514514
* @param {String} sPath Path to the resource on the WebDAV server
515+
* @param {Function} callback Function to execute when the request was successful
515516
* @type {void}
516517
*/
517-
this.list = function(sPath) {
518-
return this.getProperties(sPath, 0);
518+
this.list = function(sPath, callback) {
519+
return this.getProperties(sPath, 0, callback);
519520
};
520521

521522
/**

0 commit comments

Comments
 (0)