Comments (6)
can you give an example? there's probably a very good reason — if not simply for the sake of speed, and that doing this via Ender would do it anyway.
from bonzo.
@ded I was discussing this with @adlwalrus and I couldn't come with a good reason that bonzo()
isn't more clever and wondered if there was something I was overlooking.
bonzo(bonzo.create('<p>')).appendTo('#something') // unnecessarily awkward
The manip methods are clever enough to normalize()
& query()
, the constructor should probably be too, for Bonzo stand-alone. There's already a typeof elements == 'string'
check in there but it doesn't do anything sensible.
That, and the fact that bonzo.create()
doesn't return a Bonzo
collection.
from bonzo.
hmmm.... i suppose so... we'd have to bump up the package a minor version tho
from bonzo.
and update a few tests...
from bonzo.
Anyone wanna do it? If not, then anyone wanna coach me through doing it?
from bonzo.
Well that was silly... how does this look? #103
(I had a look over the tests to see if there were any I could clearly identify as needing to be updated, but it appears not.)
(Also, I'm still not sure what @rvagg was talking about with query()
after poking around in the sources. I assume it has to do with being able to pass a selector into the constructor, but I'm not sure.)
from bonzo.
Related Issues (20)
- $("ele").append() strips text in a mixed string. HOT 4
- toggleClass appends existing classes to className HOT 11
- Why `scrollWidth` and `offsetWidth`? HOT 1
- Add a version tag for bower HOT 4
- Add DOM Insertion, Around methods
- .focus() isn't working HOT 1
- Cannot set value of element if value is not a string
- .closest() skips origin element HOT 8
- Ender Bridge has issues with .width() and .height() on window and document. HOT 1
- Object offset() does not take margin into consideration. HOT 3
- CSS Opacity and Internet Explorer HOT 2
- .replaceWith() doesn't work when replacing a node with itself HOT 1
- Repository Command Error: version not found: 1.4.0 : bonzo/1.4.0 HOT 2
- Data method is not camelcasing hyphen separated properties HOT 2
- Window scrollTop resets scrollLeft and vice versa HOT 1
- Bower
- wrap
- bonzo doesn't specialcase "required" attr
- Only works if url does not have sub directories HOT 1
- Classie not getting included in webpack bundle. 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 bonzo.