« first day (1125 days earlier)      last day (3822 days later) » 

11:00 PM
SYTAP
 
What would be a good helper function for replacing jQuery's .css method?
(I only need to write CSS styles)
 
@ŠimeVidas why not use the native stuff?
 
@JanDvorak I'm listening
I'd also like to preserve browser support
 
so, something like prefixify?
 
What's that?
 
11:07 PM
@ŠimeVidas element.style.property .
 
I mean, something to add vendor prefixes?
 
document.body.style.backgroundColor = "#ff00ff"; // tada!
 
No. Not needed. I just want to replace jQuery's .css() methods with plain JS.
 
haha
 
@BenjaminGruenbaum You forgot .style
 
11:08 PM
ending is a little nsfw i suppose
if you work at a place where people are bothered easily
 
Also, what about IEold support and dynamic CSS style strings (with multiple props)?
 
@ŠimeVidas jQuery's .css does more than that though, I think getComputedStyle is closer to what it does when performing a Get.
@ŠimeVidas If you have to work with old IE just use jQuery, seriously. You'll need it for much more than .css
 
@BenjaminGruenbaum Since it's 2013 I reckon that somebody has already written a solid replacement helper function, so that is what I'm asking for :)
 
Do you know of any?
 
11:10 PM
@ŠimeVidas You just want .css from jQuery? Why not ttake just that?
 
@ŠimeVidas One is a part of jQuery
 
@BenjaminGruenbaum @JanDvorak Too complex
jQuery uses it for read/write + jQuery usually has a bunch of edge cases which I'm willing to ignore here
 
@ŠimeVidas you just want read or just want write?
 
Just write
 
For .write use .style.whatever, works just fine in all browsers.
 
11:12 PM
But the CSS text is dynamic. I don't know in advance which properties are going to be used.
 
still does
 
@ŠimeVidas Use bracket notation for the property name?
 
Wait a minute
 
@ŠimeVidas :-D
 
11:14 PM
Sorry, I missread the code. I'm using it for read. I'm reading one property.
 
New functions for Firefox 25.0
 
@ŠimeVidas which one?
 
is it possible to have sublime alternate between two colour backgrounds for functions so you can see their scope ?
 
@ŠimeVidas so what you really want is to shim mutation observers?
 
11:16 PM
@BenjaminGruenbaum Nah. I'm discussing getting rid of the jQuery dependency with the author of that code. Don't mind what that code does. I just need to replace that $.css in that line with something non-jQuery.
 
@ŠimeVidas getComputedStyle is likely what you want, but it won't work well in too old browsers.
 
@Shea Well whatever broke eval is probably on this list actually.
 
That's what Zepto does.
 
wow the Jolla phone and the Sailfish OS do not look very promising. not considering the price!
 
> Memory corruption in workers
 
11:21 PM
interview ova
wasnt bad at all
hope I get an offer
 
@Dave example?
 
you need an example of two colours :S ?
 
@Dave no of what you are classing as scope
 
where the { and } end
when you select one its not easy to see the other with such a small underline highlighting it
 
@Loktar Good luck! :)
 
meh too much damn hassle
 
I have seen it on a theme before, but I can't remember which one it was
 
@Dave I haven't seen anything that alternates colors, but you can make it put a vertical, dotted line along the indentation levels, which should quickly show you bracket-blocks if your code is indented correctly
	"indent_guide_options":
	[
		"draw_normal",
		"draw_active"
	],
 
^ that. Plus code folding ftw?
 
With the indent guides turned on, looks something like this:
 
11:51 PM
<key>guide</key>
<string>#3b5364</string>
<key>activeGuide</key>
<string>#ffc600</string>
In case you want to change the colours.
 
@Loktar "Yup... I worked for the Government.... taps nose, nods head.. So.. you will let me know then right? have a nice day. jumps into topless jeep and burns rubber out of the lobby into the sunset"
yes in the movie in my head you drove your jeep right up into the mutha fukin lobby
 

« first day (1125 days earlier)      last day (3822 days later) »