Comments (8)
not that we conform too much to jQuery's API — but I do like the good parts. i can't even say i like on(selector, events)
— that seems backwards, so i'm for this change. i didn't originally design bean — but you should never have optional leading arguments.
from bean.
On conformance: it helps people switch from jQuery and it also makes developing jQuery & Ender compatible plugins/modules so much easier (like exposing $.fn
).
I'm not sure about the other major libraries but the fact that jQuery has gone the Prototype path makes is making it a bit of a standard. Of course Zepto also has the same API (minus data
parameter).
from bean.
What’s the current status/thoughts on this change?
from bean.
Going for it! when I have some breathing space anyway. The current plan is to take the newfixevent branch, merge the latest changes (setSelectorEngine
and IE8 support for the 'message'
event), rename it to 0.5-wip and start making a mess! I put some notes in https://github.com/fat/bean/issues/milestones about things I'd like try and tackle. Priority is to keep size under control though so a lot of it is cleaning up messes. But doing a proper on()
is certainly near the top of the list I think.
from bean.
+1
from bean.
Can use this too!
from bean.
Due for a 1.0 release, working code is in the 0.5-wip branch and you can try it out in an Ender build by installing bean@dev. Full details here: http://rod.vagg.org/2012/08/bean_v1/
from bean.
all done, 1.0 is out with this change
from bean.
Related Issues (20)
- The event argument is not passed for listners attached to a JS object HOT 7
- focusin/focusout does not work in IE8
- API Documentation bug
- Ender methods conflicts with Bonzo HOT 1
- textinput event doesn't work
- Support matchesSelector and the like HOT 1
- IE8 can't fire native events on window
- Missing semi-colon at end of minified version. HOT 5
- Cannot `one()` recursively HOT 1
- copy, cut, paste events
- Events not firing in Chrome/Chromium since v42 HOT 3
- Custom events doesn't bubble HOT 1
- Allow bean.off to use selectors as bean.on does HOT 3
- KeyboardEvent.keyIdentifier deprecated
- No valid bower.json was found in any branch or tag of https://github.com/fat/bean.git HOT 2
- Typo in README
- Is it possible to listen to propertychange events from INPUT elements?
- Expresso Emporium
- hi
- bean is not compatible with "ender compile" HOT 6
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 bean.