Re: Problems integrating backbone.js with T5.3.6

2012-11-05 Thread Kristian Marinkovic
i knew that would come :) i 'm watching the progress closely; it'll be a great leap forward in developing js heavy applications. sometimes there is an easier solution... i just added window._ = T5._ into my copy of backbone.js. i think i was looking to hard to add it without modifying the origina

Re: Problems integrating backbone.js with T5.3.6

2012-11-05 Thread Howard Lewis Ship
Needless to say, this will not be a problem in 5.4. On Mon, Nov 5, 2012 at 11:47 AM, Howard Lewis Ship wrote: > I had to put in place a shim before the import of backbone, to fix this: > > /** > * T5 is nice enough to use Underscore in noConflict() mode, but Backbone > expects it to be visible

Re: Problems integrating backbone.js with T5.3.6

2012-11-05 Thread Howard Lewis Ship
I had to put in place a shim before the import of backbone, to fix this: /** * T5 is nice enough to use Underscore in noConflict() mode, but Backbone expects it to be visible as window._, so we hack that. */ window._ = T5._; On Mon, Nov 5, 2012 at 11:35 AM, Kristian Marinkovic < kristian.marin

Problems integrating backbone.js with T5.3.6

2012-11-05 Thread Kristian Marinkovic
Hi, i need some advice on how to properly integrate backbone.js in my T5 application. Adding backbone.js with the @Import annotation results in an console error because it can't find the global underscore object _. The reason for that is the mapping of underscore to the T5 namespace in t5-core.js