Created
          September 11, 2013 17:48 
        
      - 
      
- 
        Save thomsbg/6527210 to your computer and use it in GitHub Desktop. 
    Mixing shared ajax functionality into a model
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | App.Mixins.Ajax = { | |
| ... | |
| }; | |
| App.Models.Comment = Backbone.extend(_.extend({}, | |
| // Mixins | |
| App.Mixins.Ajax, { | |
| // Methods | |
| initialize: function() { | |
| ... | |
| } | |
| })); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment