Backbone: Accessing view from within ajax success() call
I have a backbone.js view which has the following ajax call:

    BackboneDemo.Views.Projects.ProjectView extends Backbone.View

      demoFunction: () ->
        ...
        ...
        @collection.create(new_project_attributes,
          success: ->
            console.log @
            $('#' + @options.query_id).html('Saved successfully').delay(1500).fadeOut(500, -> $(@).remove())


The problem is, the 'this' from inside the success call returns DOMWindow, not the view in which the @options.query_id is located. (Yes, demoFunction is bound to the view)

So, in short, how can I access view attributes from within an AJAX success() call in Backbone?

Any ideas appreciated - cheers.
Backbone: Accessing view from within ajax success() call
===

I have a backbone.js view which has the following ajax call:

    BackboneDemo.Views.Projects.ProjectView extends Backbone.View

      demoFunction: () ->
        ...
        ...
        @collection.create(new_project_attributes,
          success: ->
            console.log @
            $('#' + @options.query_id).html('Saved successfully').delay(1500).fadeOut(500, -> $(@).remove())


The problem is, the 'this' from inside the success call returns DOMWindow, not the view in which the @options.query_id is located. (Yes, demoFunction is bound to the view)

So, in short, how can I access view attributes from within an AJAX success() call in Backbone?

Any ideas appreciated - cheers.