Browse files

update fix for safari

  • Loading branch information...
1 parent f25b70d commit 7cbdd71da63ea498b2c262e97eacc3a463c7d2ae @twilson63 twilson63 committed Jun 13, 2010
Showing with 3 additions and 8 deletions.
  1. +1 −1 fu.coffee
  2. +1 −1 fu.js
  3. +1 −4 server.coffee
  4. +0 −2 server.js
View
2 fu.coffee
@@ -240,7 +240,7 @@ fu.mime: {
".zip" : "application/zip"
},
lookupExtension: (ext, fallback) ->
- @TYPES[ext.toLowerCase]
+ @TYPES[ext.toLowerCase()]
#or fallback or 'application/octet-stream'
}
View
2 fu.js
@@ -265,7 +265,7 @@
".zip": "application/zip"
},
lookupExtension: function(ext, fallback) {
- return this.TYPES[ext.toLowerCase];
+ return this.TYPES[ext.toLowerCase()];
//or fallback or 'application/octet-stream'
}
};
View
5 server.coffee
@@ -38,7 +38,6 @@ class Channel
matching: []
for message in @messages
matching.push message if message.timestamp > since
- sys.p matching
if matching.length isnt 0
callback matching
else
@@ -56,8 +55,7 @@ channel: new Channel()
createSession: (nick) ->
if nick.length > 50 then return null
- if /[^\w_\-^!]/.exec(nick)
- return null
+ if /[^\w_\-^!]/.exec(nick) then return null
for session in sessions
if session.nick == nick then return null
@@ -138,7 +136,6 @@ fu.get("/part", (req, res) ->
)
fu.get("/recv", (req, res) ->
- sys.puts "recv called"
id: qs.parse(url.parse(req.url).query).id
if id and sessions[id]
session: sessions[id]
View
2 server.js
@@ -58,7 +58,6 @@
matching.push(message);
}
}
- sys.p(matching);
matching.length !== 0 ? callback(matching) : this.callbacks.push({
timestamp: new Date(),
callback: callback
@@ -196,7 +195,6 @@
});
fu.get("/recv", function(req, res) {
var id, session, since;
- sys.puts("recv called");
id = qs.parse(url.parse(req.url).query).id;
if (id && sessions[id]) {
session = sessions[id];

0 comments on commit 7cbdd71

Please sign in to comment.