Permalink
Browse files

Misc cleanup

  • Loading branch information...
1 parent c314b1d commit 59631f958e787d2c98bcd74b14a047af2f1ab4ec @Sutto committed Jul 28, 2011
Showing with 5 additions and 7 deletions.
  1. +4 −5 lib/pebble/twitter.js
  2. +1 −2 src/pebble/twitter.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -14,12 +14,11 @@ class Twitter extends Base
access_token_key: config.access_token.key
access_token_secret: config.access_token.secret
})
- outer = @
startStream: ->
outer = this
@twitter.stream 'statuses/filter', track: config.track, (stream) =>
- stream.on 'data', (tweet) =>
+ stream.on 'data', (tweet) ->
outer.emit 'tweet', outer.filtered tweet
stream.on 'end', (resp) ->
sys.puts "Twitter Connection ended, Status code was #{resp.statusCode}"

0 comments on commit 59631f9

Please sign in to comment.