News for hackers. Stuff that matters.
Re:How to build fast HTML5 mobile apps using backbone.js, ze... by studiomohawk on Friday March 02, 2012 @07:59PM (#3658992)
Would you please explain a bit more on

// This fix was hard-won - // just doing .css(property, '') doesn't work! $old.get(0).style["margin-left"] = "" $old.get(0).style["-webkit-transform"] = ""

What wasn't working and how this lines solved the problem?

Re:How to build fast HTML5 mobile apps using backbone.js, ze... by Groxx on Saturday March 03, 2012 @02:36AM (#3659674)
I was wondering about that too. It seems like they're trying to remove an attribute... which is what $old.removeAttr('margin-left') is meant for.
Re:How to build fast HTML5 mobile apps using backbone.js, ze... by 0atman on Monday March 05, 2012 @04:56AM (#3666036)
$old.removeAttr("margin-left") doesn't work for some reason (in Chrome), hence I went for the get(0) way. I'd be interested to know why it doesn't work...
Re:How to build fast HTML5 mobile apps using backbone.js, ze... by Groxx on Tuesday March 06, 2012 @02:20AM (#3670045)
Oh, hah, sorry - that's manipulating styles. Though I'm not sure why .css('attr', '') didn't work. I've been diving into the depths of jQuery more lately though, and every time I do I find new and... interesting things... my suggestion is to read the source. There are some wonky things in there that'll explain a lot of weird, edge-casey behavior.
Re:How to build fast HTML5 mobile apps using backbone.js, ze... by 0atman on Monday March 05, 2012 @04:52AM (#3666027)
Hi, I wrote that line. I was doing my initial testing on Chrome and css() wasn't removing the attributes properly, which was causing problems with the animation.
Re:How to build fast HTML5 mobile apps using backbone.js, ze... by studiomohawk on Thursday March 08, 2012 @11:45PM (#3682960)
Oh, Thank you. how weird..