Browse files

added case for when events hash may be empty

  • Loading branch information...
1 parent 0986e42 commit 12e6694e631aa13572ff8d82a97f8138ad92d50b @minasmart committed Mar 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 backbone_editable.js.coffee
View
1 backbone_editable.js.coffee
@@ -14,6 +14,7 @@ class Backbone.Mixin.Editable
initEditable: (options = {}) ->
@_setSilent(options)
+ @events = {} unless @events
_.extend @events, @_editable_events
@delegateEvents()

0 comments on commit 12e6694

Please sign in to comment.