small refactor to the getWidthFromLength stuff to make it self-contained and more concise. Now appends to docElem as well, fixes #177
small refactor to the getWidthFromLength stuff to make it self-contained and more concise. Now appends to docElem as well, fixes #177

iancrowther/picturefill,yubin-huang/picturefill,scottjehl/picturefill,albell/picturefill,guardian/picturefill,chrismcandrew/picturefill,footiealf/picturefill,iancrowther/picturefill,ddeveloperr/picturefill,chrismcandrew/picturefill,albell/picturefill,scottjehl/picturefill,rockmandew/picturefill,purposeindustries/picturefill,demateu/picturefill,mcanthony/picturefill,samiadelgado/picturefill,samiadelgado/picturefill,mcanthony/picturefill,nucliweb/picturefill,yubin-huang/picturefill,patrickkettner/picturefill,ddeveloperr/picturefill,demateu/picturefill,yufi113/picturefill,yufi113/picturefill,rockmandew/picturefill,guardian/picturefill,purposeindustries/picturefill,footiealf/picturefill,patrickkettner/picturefill