Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/codeparty/derby
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoguchi committed Apr 13, 2012
2 parents fd97822 + bf1b744 commit d1f52e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/chat/src/chat/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ ready (model) ->
exports.reload = -> window.location.reload()


messages = $ 'messages'
messageList = $ 'messageList'
messages = document.getElementById 'messages'
messageList = document.getElementById 'messageList'
atBottom = true

# Derby emits pre mutator events after the model has been updated, but
Expand Down
9 changes: 3 additions & 6 deletions examples/chat/src/chat/inline.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
# "inline.js". This file will be automatically inserted before the external
# scripts are included.

# For convenience, document.getElementById is aliased as $, but no other
# special functions are provided by default.

messages = $ 'messages'
messageList = $ 'messageList'
commentInput = $ 'commentInput'
messages = document.getElementById 'messages'
messageList = document.getElementById 'messageList'
commentInput = document.getElementById 'commentInput'
do window.onresize = ->
# Scroll the message list to the bottom
messages.scrollTop = messageList.offsetHeight
Expand Down

0 comments on commit d1f52e3

Please sign in to comment.