@@ -852,17 +852,17 @@ define(function (require, exports, module) {
852852 * @param {function(string): boolean } filter - Returns true if a particular item should
853853 * be watched, given its name (not full path). Items that are ignored are also
854854 * filtered from Directory.getContents() results within this subtree.
855- * @param {string } nodeFilter - anymatch compatible definition for filtering out events
855+ * @param {string } globFilter - glob compatible string definition for filtering out events
856856 * on the node side.
857857 * @param {function(?string)= } callback - A function that is called when the watch has
858858 * completed. If the watch fails, the function will have a non-null FileSystemError
859859 * string parametr.
860860 */
861- FileSystem . prototype . watch = function ( entry , filter , nodeFilter , callback ) {
862- // make nodeFilter an optional argument
863- if ( typeof nodeFilter === "function" && typeof callback !== "function" ) {
864- callback = nodeFilter ;
865- nodeFilter = null ;
861+ FileSystem . prototype . watch = function ( entry , filter , globFilter , callback ) {
862+ // make globFilter an optional argument
863+ if ( typeof globFilter === "function" && typeof callback !== "function" ) {
864+ callback = globFilter ;
865+ globFilter = null ;
866866 }
867867
868868 var fullPath = entry . fullPath ;
@@ -891,7 +891,7 @@ define(function (require, exports, module) {
891891 return ;
892892 }
893893
894- var watchedRoot = new WatchedRoot ( entry , filter , nodeFilter ) ;
894+ var watchedRoot = new WatchedRoot ( entry , filter , globFilter ) ;
895895
896896 this . _watchedRoots [ fullPath ] = watchedRoot ;
897897
0 commit comments