Comments (8)
What's the deal with unbinding callbacks in Zepto? Can you never remove a callback?
from backbone.
I've been using a combination overriding delegateEvents
on a child class and and a similar patch to zepto that calls removeEventListener
with the callbacks in the events
object. It's a pain because there's no remove all events call like in jQuery. Anyhow I just opened a ticket over there:
https://github.com/madrobby/zepto/issues/issue/32
from backbone.
Correct me if I'm wrong, but looking at the Zepto source:
https://github.com/madrobby/zepto/blob/master/src/zepto.js
It seems like there are 3 places where addEventListener
is mentioned, and no places where removeEventListener
is mentioned. Kinda seems like Zepto is still half-baked at this point, if there's no way to unbind the events you've added...
from backbone.
Exactly, I think it's an oversight on zeptos part and not something backbone should worry about.
from backbone.
Let's freeze this one until Zepto gets a little more baked than it is currently -- Jeff's ticket still hasn't been addressed.
from backbone.
Is there anything else needed/desired from zepto? This would be useful to me and I'll invest the time to write the needed functionality for zepto.
from backbone.
I've got all the Backbone tests passing with a modified fork of Zepto:
https://github.com/sstephenson/backbone/compare/zepto
https://github.com/sstephenson/zepto/compare/master
from backbone.
Alright, Zepto 0.2 is out, as is Backbone 0.3.3, with Zepto support. Thanks for taking care of all the hard work, Sam. Closing the ticket.
from backbone.
Related Issues (20)
- Backbonejs (1.4) version compact with jQuery (3.4.1) ? HOT 2
- Token error 'delete' on an old browser HOT 3
- How can I use installed npm library in backbone view
- Backbone is being actively maintained HOT 29
- Embrace prototypes HOT 12
- Upgrade devDependencies, add lockfile HOT 21
- Replace travis with GH Workflows HOT 22
- Should Backbone.Collection throw an error when client code attempts to add the same model twice? HOT 8
- Browser tests that don't work in Sauce labs
- Separate fetch/save api into plugin or external module HOT 17
- Bug in _removeModels: function(models, options) { HOT 1
- Uots about time
- error event not firing for Collection.create with wait true HOT 4
- Clean up misguided legacy changes HOT 1
- Community question: who is interested in reviewing my pull requests? HOT 3
- Testing against outdated vendor libraries HOT 1
- Misleading line in CONTRIBUTING.md HOT 2
- ES Modules: please discuss HOT 33
- Changelog? HOT 1
- Will updating backbone also update jquery? [answered: no] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbone.