[Noisebridge WebDev] [FrontEnd] Class for 2013-08-26: ClassName Swap, Language Review, RTFM, by Garrett Smith

Jeffrey Carl Faden jeffreyatw at gmail.com
Wed Aug 28 02:09:41 UTC 2013

Thanks for putting such detailed notes in the class archive! Muy helpful.


On Aug 27, 2013, at 12:58 PM, Garrett Smith <dhtmlkitchen at gmail.com> wrote:

> Review:
> Class for 2013-08-26 (Monday): ClassName Swap, Language Review, RTFM,
> by Garrett Smith
> https://noisebridge.net/wiki/Frontend_Web_Development/Notes#Class_for_2013-08-26:_RTFM_and_STFW.2C_Garrett_Smith
> Lesson: CSS ClassName Swap
> By changing an element's className multiple styles can be changed at one time.
> Using the descendant selector, and changing the className of an
> ancestor element, multiple elements can be updated simultaneously,
> with a modicum of highly efficient code.
> For Styles, replace a loop that applies styles to descendants by
> adding a class token to the nearest common ancestor.
> Also a brief review of ECMAScript and links to the FAQ and pertinent specs.
> -- 
> Garrett
> Twitter: @xkit
> personx.tumblr.com
> _______________________________________________
> WebDev mailing list
> WebDev at lists.noisebridge.net
> https://www.noisebridge.net/mailman/listinfo/webdev

More information about the WebDev mailing list