Re : Conditional tags don't work properly when omitting
Well, so skipping the closing li tags is perfectly valid, so I would definitely consider this a bug with canjs. What would be really awesome is if we could just set a global flag to toss all whitespace...
View ArticleRe : When is it appropriate to use a method vs a compute within a...
The next method is not compute because it is there to change the offset attribute if the next method is invoked from mustache template with can-click 2 Way Binding happens so where is the need for the...
View ArticleRe : When is it appropriate to use a method vs a compute within a...
We're talking about page, not next. Page can be represented solely as a compute.
View ArticleRe : When is it appropriate to use a method vs a compute within a...
In 2.1 there's a new define plugin that makes pagination (and other things, but pagination in particular) very nice and easy: http://canjs.com/2.1/docs/can.Map.prototype.define.html
View ArticleRe : Conditional tags don't work properly when omitting
I agree. Don't use closing li's as well. Ideally like to see it fixed as well.
View ArticleWorking with requirejs
Sort of have it working. I'm noticing that with a very basic example where I define a simple can.Control I get a ton of request for the module files. I'd rather utilize a single can build file even...
View ArticleRe : Working with requirejs
Just a heads up, I get this:Uncaught ReferenceError: jQuery is not defined can.custom.js:417Uncaught TypeError: Cannot call method 'extend' of undefined return can;#417: })(jQuery, __m5,...
View ArticleRe : Working with requirejs
Loading lots of modules is fine for development. You should always "build" your site for production.You need to setup require's shim config with the correct deps if you are using a built canjs.You...
View ArticleRe : Working with requirejs
Ok cool thanks Justin! Yeah, I just got a shim setup with jquery as a dep for can. Working well. I agree, ideally should have things split up and building for production. Starting out slow so...
View ArticleRe : Conditional tags don't work properly when omitting
This is fixed in stashe. It's unlikely to be fixed in Mustache in a short time frame b/c it would involve using a similar set of rules in stache that can't be easily exported.
View ArticleRe : Conditional tags don't work properly when omitting
I see. What kind of timetable is there before stashe is production ready?
View ArticleRe : Working with requirejs
You can check my repository to see how I work with CanJS and RequireJS.
View Article404 errors - examples in can.view.bindings
FYI:The github example files are producing 404 errors. http://canjs.com/docs/can.view.bindings.can-value.html
View ArticleRe : What are some techniques to improve performance?
First I try to get rid of can.Map where it is possible (for large data pieces). BTW you may check LazyMap of 2.1.Second you don't wan't to render large structure at once right? You should use some...
View ArticleRe : What are some techniques to improve performance?
I would figure out if it's can.Map or the live binding that's the performance problem. Put a timer around where the map gets created and one around where the view is rendered. Which is slower?If the...
View ArticleRe : What are some techniques to improve performance?
Oh it's completely the rendering. We're already using setup overrides to speed up can.Map construction, and that all happens very quickly. Our rendering time is what's awful: ~2 seconds. Seeing a huge...
View ArticleRe : What are some techniques to improve performance?
Hah, in some cases I even used to construct complex and large HTML with strings because it was 10 times faster then using mustache template even with static data involved, but it is reasonable only...
View ArticleFuncUnit not loaded into bitovi's srchr demo
On this page:http://bitovi.github.io/srchr/docs/index.htmlWe followed these instructions:git clone git://github.com/bitovi/srchr srchr cd srchr git submodule update --init --recursiveWe getSubmodule...
View Article