Quantcast
Channel: JavaScriptMVC Forum
Browsing all 3491 articles
Browse latest View live

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 Article


Re : 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 Article


Re : 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 Article

Re : 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 Article

Re : 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 Article


Working 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 Article

Re : 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 Article

Re : 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 Article


Re : 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 Article


Re : 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 Article

Re : Conditional tags don't work properly when omitting

I see. What kind of timetable is there before stashe is production ready?

View Article

Re : Conditional tags don't work properly when omitting

3 weeks.

View Article

Re : Working with requirejs

You can check my repository to see how I work with CanJS and RequireJS.

View Article


404 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 Article

Re : 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 Article


Re : 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 Article

Re : 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 Article


Re : 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 Article

Re : What are some techniques to improve performance?

you should have used EJS then.

View Article

FuncUnit 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
Browsing all 3491 articles
Browse latest View live