/*! jQuery Justify - v0.1.0-SNAPSHOT - 2012-12-31 * https://github.com/hhelwich/jquery-justify * Copyright (c) 2012 Hendrik Helwich; Licensed MIT */ (function(e){"use strict";function t(e,t,n){if(e.length===0)return[];var r=[0],i,s=0,o=!0,u;for(i=0;it&&e[i].breakBefore!==!1?o?s=0:(r.push(i),s=u+n):s+=n,o=!1;return r}function n(e,n,r,i){var s=n,o=t(e,n,r),u=n,a=o,f;for(f=0;fo.length?n+=s:(u>n&&(o=a,u=n),n-=s),a=t(e,n,r);return o}function r(e,t,r){var i,s,o,u,a,f=0,l=0,c,h,p,d=[],v,m;t-=r.marginLeft+r.marginRight,i=n(e,t,r.marginX,r.accuracy),p=i.length,d.length=e.length,h=r.marginTop;for(s=0,u=0;s1&&(d[u-1].left=t-e[u-1].width+r.marginLeft),h+=l+r.marginY,f=0,l=0}return d.height=h-r.marginY+r.marginBottom,d}e.fn.justify=function(t){function d(){var e=n.width(),t,o;if(e===s)return!1;s=e,t=r(l,s,i),i.onChangeHeight(t.height);for(o=0;o