This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is doing the same thing as it already was.
I would move this change to the next line:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conclusion
Without determining whether
Backbone.utils
exists andBackbone.utils.delegate
/Backbone.utils.undelegate
are functions, any call ofChaplin.delegate
orChaplin.undelegate
results in an error for me:or
The
Backbone.utils
object exists - but withoutdelegate
andundelegate
functions.Please check the source: https://github.com/paulmillr/exoskeleton/blob/master/lib/utils.js
The latest release of exoskeleton does not include these functions (possibly deprecated?).
As already mentioned above, I want to use
Chaplin
with the latest release of exoskeleton. This could be a possible fix for paulmillr/exoskeleton#87, isn't it?The solution
And as far I understand,
Chaplin
seems to have its own, nativedelegate
andundelegate
functions:View.delegate
: chaplin/src/chaplin/views/view.coffee#L202-L225View.undelegate
: chaplin/src/chaplin/views/view.coffee#L260-L276Please correct me, if I am wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, I'm the one who removed them :)
The right answer is to fix Chaplin to work with NativeView and not rely on utils.delegate / utils.undelegate. I started #780 last year but I haven't had a project that needed Chaplin in a long time and so I haven't had time to dedicate to fix all the edge cases. Feel free to contribute to that pull, or just use Exoskeleton 0.6.x which should work with Chaplin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, I need several bug fixes from
0.7.0
- I can not downgrade.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind telling me what they are? We could maybe do a 0.6.4.
You might also want to try just using regular old Backbone. Why do you need Exoskeleton?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will stick to your recommendation. I want to provide a patch for NativeViews, since my app is based on Chaplin and I like it.
Exoskeleton runs faster on low-memory Firefox OS devices, in comparison to classic Backbone.