Skip to content

Commit

Permalink
Bug fixes:
Browse files Browse the repository at this point in the history
* Fixes #14
* Fixes #13
* Fixes #11
  • Loading branch information
doughsay committed Feb 21, 2013
1 parent 3b7ce4d commit d5eb2a5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 1 addition & 3 deletions assets/css/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ body {
}

.command {
border-width: 2px 0 0 0;
border-style: solid;
border-color: gray;
border-top: 2px solid @gray;
form {
margin: 0;
.prompt {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/view_models/client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class ClientView
setSizes: ->
inputWidthDiff = @input.outerWidth() - @input.width()
@input.width($('.ui-layout-center').width() - inputWidthDiff - $('.prompt').outerWidth())
@screen.height($('.ui-layout-center').height() - @input.outerHeight())
@screen.height($('.ui-layout-center').height() - @input.outerHeight() - 2)

# if an ace editor is present, call it's resize function
# and set sizes for all the form elements to make them look prettier
Expand Down
5 changes: 5 additions & 0 deletions lib/context.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ class Context
x

serialize: (x) =>
try
JSON.stringify x
catch error
throw new Error 'Unserializable property'

switch typeof x
when 'object'
if x == null
Expand Down
2 changes: 2 additions & 0 deletions lib/object.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ exports.RoomJsObject = class
true
else
object = @db.findById id
if object.inheritsFrom @id
throw new Error 'Cannot create circular inheritance'
if not object?
throw new Error "Invalid object"
@parent_id = id
Expand Down

0 comments on commit d5eb2a5

Please sign in to comment.