We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi everybody, I'm having memory leaks using Backbone.Validation.bind and unbind. If I bind a view and then, before destroy it, I unbind them:
class CountryEditView extends Backbone.View initialize: -> @parent = @options.parent @app = @parent.app @listenTo @model, 'change', @change @listenTo @model, 'destroy remove', @back Backbone.Validation.bind @, valid: (view, key) -> if ($ele = view.$("[name=#{key}]")).length $ele.closest('.control-group').removeClass 'error' invalid: (view, key, error) -> if ($ele = view.$("[name=#{key}]")).length $ele.closest('.control-group').addClass 'error' remove: -> Backbone.Validation.unbind @ super
Even if the view has been removed using the remove() method, 3 references persist in memory:
The text was updated successfully, but these errors were encountered:
Apologies for being a bit out of topic. What's the program you're using to analyse this issue?
Sorry, something went wrong.
I've used the Google Chrome Profiles taking Heap Snapshots
@bigluck Hey, did you manage to find a solution?
No branches or pull requests
Hi everybody,
I'm having memory leaks using Backbone.Validation.bind and unbind.
If I bind a view and then, before destroy it, I unbind them:
Even if the view has been removed using the remove() method, 3 references persist in memory:
The text was updated successfully, but these errors were encountered: