Make unwatchPath spec make a valid negative assertion and return the watchId from $native.watchPath

This commit is contained in:
Nathan Sobo
2012-04-25 20:14:35 -06:00
parent 3ac49e1cd5
commit 5c057e11b1
2 changed files with 10 additions and 9 deletions

View File

@@ -296,7 +296,8 @@ bool NativeHandler::Execute(const CefString& name,
context->Exit();
};
[PathWatcher watchPath:path callback:[[callback copy] autorelease]];
NSString *watchId = [PathWatcher watchPath:path callback:[[callback copy] autorelease]];
retval = CefV8Value::CreateString([watchId UTF8String]);
return true;
}