Re: Tapestry 5.4 require.js modules

2014-01-15 Thread Daniel Jue
I don't have input on the question of additional scope, but thanks for letting us know that the upgrade went pretty smoothly-- I'm eager to use 5.4 but I can't change right now. On Mon, Jan 13, 2014 at 3:25 PM, Kristian Marinkovic kristian.marinko...@gmail.com wrote: Hi all, why are

Re: Tapestry 5.4 require.js modules

2014-01-15 Thread Howard Lewis Ship
The outer function is a hygenic wrapper created by the CoffeeScript compiler. Occasionally, it places a few things that should be local to the individual file inside the function and before the define(). I haven't checked yet whether the Google Closure compiler is smart enough to unwrap these,

Tapestry 5.4 require.js modules

2014-01-13 Thread Kristian Marinkovic
Hi all, why are tapestry's requirejs modules nested in an anonymous javascript function: (function() { define(['jquery'], function($) { }) }).call(this); isn't it enough to just write define(, function() {})? Is there a reason for this additional scope? cheers, Kris BTW, i just