Comments (12)
It's in the new release.
from appframework.
I see clone() in 0.9.1a but it seems to return an HTML element instead of a set.
Seems like a bug to me.
from appframework.
What do you mean by "set" do you mean a deep clone?
from appframework.
By "set" I mean jQuery selector result type to which one can apply jQuery methods.
In jQuery I can write:
var a = $('#someid').clone(); a.removeAttr('id');
but in jQ.Mobi I have to extra wrap .clone() result in $() to do same:
var a= $($('#someid').clone()); a.removeAttr('id');
from appframework.
I see what you mean so you basically want to be able to chain :
$('#someid').clone().removeAttr('id');
I'm sure Ian can manage this, I had a similar request with $('#someid').parent().addClass('blah'); - he sorted it in 2 mins :)
from appframework.
Also .clone() is a deep clone in jQuery - can you make it so in jQ.Mobi?
it's not very useful now without deep cloning.
from appframework.
clone takes in a parameter "deep" which will copy in all the children. It does not copy events (nor will it).
from appframework.
No events copy is fine, but I'd like to see same behavior as jQuery, where deep=true by defaul.
I am trying to port an app from jQuery and such incompatibilities waste a lot of my debugging time.
Thanks,
Alex
from appframework.
Got it...I'll make that change. Thanks!
from appframework.
BTW, you are also missing jQuery ().data() API ...
from appframework.
Hardly - it's only an attribute :) But In know what you mean.
$(''selector").attr("data-twaddle");
from appframework.
Actually it's in the code and has been, just not documented. You get points though because evidently you're the only one to read the actually Readme.md file ;)
We'll have better documentation for the 1.0 release.
from appframework.
Related Issues (20)
- panelload triggered twice on "back" action HOT 2
- Variable mistyped in adding $.afui.showMask() timeout parameter
- Header buttons doesn't work HOT 1
- hao to add my icon
- ajax problem
- Side menu fail in iOS if fastclick is not installed
- $.afui.loadContent issue HOT 4
- IDE crashes when the app designer is in use HOT 9
- cadastro
- Where is the documentation ? HOT 3
- Docs HOT 2
- $.afui.loadAjax issues HOT 1
- couldn't scroll? pc web can scroll but on the iphone safari couldn't
- Question: "af.ui.js:622 Uncaught ReferenceError: timeout is not defined", why? HOT 2
- how to pass value between two pages? HOT 1
- Handling of 'touchstart' input event was delayed HOT 1
- data-footer="none" not hiding footer
- I doubt that I found some bugs, but can not confirm...
- Why I'cant use Custom Fonts? HOT 1
- How can i add a search box?
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 appframework.