Skip to content

zzurang/backbone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

585 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Changes

Model triggering 'after_sync' after Backbone.sync gets 2xx from sync with backend. This gives more event driven passion in view code

  class window.EditableUserInfoView extends Backbone.View
      ...
       
      initialize: (attributes, options) ->            
          @after_save_callback  = (options && options['after_save']) || @change_to_display_mode
          @model.bind 'change', @render
          @model.bind 'error', @show_validation_error
          @model.bind 'after_save', @after_save_callback
      ...

About

Give your JS App some Backbone with Models, Views, Collections, and Events

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • HTML 57.5%
  • JavaScript 41.5%
  • Other 1.0%