Re:Hair
by clarkmoody on Thursday June 20, 2013 @11:54AM
(#5912804)
First bit of the JavaScript apologizes for the compiled code and refers the reader to the source:
Probably compiled from some other language? Like Dart or CoffeeScript?
Re:Hair
by mrPaumgarten on Thursday June 20, 2013 @04:30PM
(#5914751)
Nope ... just compiled because it uses AMD. That is a modular JavaScript format that resolves dependency management. Source is also JS, just not minified.
Who even writes ugly code like this:
.slice(0),this.depMaps.rjsSkipMap=e.rjsSkipMap,this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check()},defineDepById:function(e,t){var n;return each(this.depMaps,function(t,r){if(t.id===e)return n=r,!0}),this.defineDep(n,t)},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(this.fetched)return;this.fetched=!0,r.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();T(this,!0)(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()}))},load:function(){var e=this.map.url;c[e]||(c[e]=!0,r.load(this.map.id,e))},check:function(e){if(!this.enabled||this.enabling)return;var