Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initialize: function(handler) {
jsDAV_ServerPlugin.new(this, handler);
handler.addEventListener("afterWriteContent", function(e, uri) {
self.emit("afterWrite", {
file: "/" + uri
});
e.next();
});
handler.addEventListener("afterDelete", function(e, uri) {
self.emit("afterDelete", {
file: "/" + uri
});
e.next();
});
handler.addEventListener("afterMove", function(e, uri) {
initialize: function(handler) {
jsDAV_ServerPlugin.new(this, handler);
this.handler = handler;
handler.addEventListener("beforeMethod", this.checkPermission.bind(this));
},