I have recently added the tapestry-yuicompressor and my production code just went crazy. I have tracked the javascript error to the problem with the minimization. My problem was in the tapestry jquery tooltip plugin.
Given below is that the yuicompressor has minimized for me and it was throwing an error (function(d){if(!d(document.body).is("[role]")){d(document.body).attr("role","application")}var b=0;d.widget("ui.tooltip",{options:{tooltipClass:"ui-widget-content",content:function(){return d(this).attr("title")} /*&position@Q&my@(left centerU&at@(right centerU&offset@(15 0RRU&_init@iSTQv&*/ return for&&if++=this;this.tooltip=d("<div></div>").attr("id","ui-tooltip-"+b++).attr("role","tooltip").attr("aria-hidden","true").addClass("ui-tooltip ui-widget ui-corner-all").addClass(this.options.tooltipClass).appendTo(document.body).hide();this.tooltipContent=d("<div></div>").addClass("ui-tooltip-content").appendTo(this.tooltip);this.opacity=this.tooltip.css("opacity");this.element.bind("focus.tooltip mouseenter.tooltip",function(e){a.open(e)} /*h&bindS(blur.tooltip mouseleave.tooltipUiS&eventTQ&selfh&closeS&eventTNR™Th*/ keyup(function(e){if(e.keyCode==27){a.close(e)}} /*NR™U&enable@iSTQ*h&optionsh&disabledV+NR™U&disable@iSTQ*h&optionsh&disab*/ if&&||=true} /*&destroy@iSTQ*h&tooltiph&removeSTN&$h&Widgeth& prototypeh&destroyh&applyS*U*/ arguments)} /*&widget@iSTQ*h&tooltipNR™U&open@iS&eventTQv&targetV*h&elementNlS*h&curr*/ &&switchbreak &&this.current[0]==target[0]){return}var a=this;this.current=target;this.currentTitle=target.attr("title");var c=this.options.content.call(target[0],function(e){if(a.current==target){a._show(event,target,e)}} /*NlS&contentTQ&selfh&_showS&eventU&targetU&contentTNRR™U&_show@iS&eventU*/ target,c){if(!c){return}target.attr("title","");if(this.options.disabled){return}this.tooltipContent.html(c);this.tooltip.css({top:0,left:0}).show().position(d.extend(this.options.position,{of:target})).hide();this.tooltip.attr("aria-hidden","false");target.attr("aria-describedby",this.tooltip.attr("id"));if(this.tooltip.is(":animated")){this.tooltip.stop().show().fadeTo("normal",this.opacity)}else{this.tooltip.is(":visible")?this.tooltip.fadeTo("normal",this.opacity):this.tooltip.fadeIn()}this._trigger("open",event)} /*&close@iS&eventTQlS*h¤tTQNRv¤tV*h¤th&attrS(titleU*h& */ :continue dodo&&switchbreak )function(){this.current=null;if(this.options.disabled){return}current.removeAttr("aria-describedby");this.tooltip.attr("aria-hidden","true");if(this.tooltip.is(":animated")){this.tooltip.stop().fadeTo("normal",0,function(){d(this).hide().css("opacity","")} /*NRmQ*h&tooltiph&stopSTh&fadeOutSTNR*h&_triggerS(closeU&eventTNR™RTNR™TS&*/ {continue &&dofinally); Do I need to configure the compressor in some kind of way? I have just added it to the maven and it was my understanding that once added and production-mode is set to true it should work out of the box. Sadly that is not the case. Any ideas? Thank you -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-yuicompressor-minimization-problem-tp5719156.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org