lib/devcenter/previewer.rb in devcenter-1.1.9 vs lib/devcenter/previewer.rb in devcenter-1.2.0
- old
+ new
@@ -44,14 +44,10 @@
def init_server
WebServer.new(host, port, WebApp)
end
def init_listener
- file_listener_callback = Proc.new do |modified, added, removed|
- modified.each{ |f| Devcenter::Logger.log "File modified: #{f}" }
- WebApp.send_server_event
- end
- FileListener.new(md_path, file_listener_callback)
+ FileListener.new(md_path)
end
def start
@server.start
@listener.start