Making UN-Observables
HiIn the context of live binding it is normal that an interactive app makes extensive changes to an observable.If such changes need to be persisted my approach has been to (try) and reverse the process...
View ArticleRe : attributes in camelCase don't work
scope-var HTML attribute (after lowcasing and camelcasing) is bind to scopeVar.scopeVar HTML attribute (after lowcasing and camelcasing) will be bind to scopevar.Data between {{ }} is not touched,...
View ArticleRe : Making UN-Observables
AlexThanks for taking the trouble to reply.However, the issue is not one of serialization - that's a trivial issue.The problem is that can.Map morphs the originating object into a much bigger and more...
View ArticleRe : Making UN-Observables
> The problem is that can.Map morphs the originating object into a much bigger and more complex object with SHEDLOADS of stuff that is only of concern to internal can.Routines and nothing whatever...
View ArticleRe : Making UN-Observables
> Just take a look at how much cruft can.Map creates from even a fairly simple object, can.Map doesn't create 90% of that ... those things are on can.Map's prototype ... they are created once and...
View ArticleRe : Making UN-Observables
JustinI am well aware that the original object remains unchanged.Sorry, I was using 'morphs' a bit loosely.But the point remains.When you have the observable live that is what you are working with and...
View ArticleRe : attributes in camelCase don't work
Thanks alex, will keep that in mind - i'll convert to dashes then.
View ArticleRe : Making UN-Observables
> I now want to create a new definition that can be stored and in turn read in and further editied at some later date. It's no good serializing the observable and trying to use that as it no longer...
View ArticleRe : Making UN-Observables
Yeah it is hard to understand what you are trying to accomplish and what is your workflow for working with data. Object data you have loaded from source (server etc) you supply to can.Map constructor...
View ArticleRe : Making UN-Observables
Well, so you can use the attr method to return a plain javascript object, and then leverage model stores to maintain a set of instances. For example, you could do foo.attr(), modify it, then do...
View ArticleRe : Missing doc.bat in documentjs
As described in http://javascriptmvc.com/docs/ documentjs/doc.bat has to be used but doc.bat is missing.
View ArticleRe : can.Component: dynamic attribute values binding to scope
Actually Bitovi guys just solved this issue Stash templates in CanJS 2.1: http://canjs.com/docs/can.stache.html#section_Deferrencesfromcan_mustache
View ArticleBuild fails
Building fails with the following error:$ ./js.bat steal/buildjs https://www.spotwizard.org/search.htmlBuilding to opening https://www.spotwizard.org/search.html adding dependencies +...
View ArticleRe : Build fails
Cannot read property "options" from undefined - look where it is. you should avoid this code to executed while steal run. For example to wrap starting code into $(function(){ ... })
View ArticleHow can I override can.Component's lookup function?
Hey guys,I've been toying with the idea of making a base component that includes an app wide can.Map.extend as well as a programmatic interface. The idea here is that the interface would be a singleton...
View ArticleRe : How can I override can.Component's lookup function?
> Basically, I'm hoping that this will create design patterns that are much more decoupled, and clearer.This will actually make things more coupled. The "crazy amount of attributes" is what keeps...
View ArticleRe : How can I override can.Component's lookup function?
Also, can.route is typically the "global" state.
View ArticleWhey an app uses mustache not stache?
I have the only use of stache for root component:$('body').append(can.stache('<my-app></my-app>')())I don't use any can.view.mustache functions or mustache filesBut in the console i've got...
View ArticleRe : Whey an app uses mustache not stache?
So we did find a few bugs with stache that will be coming out in a 2.1.1 very shortly. However, I don't know why you are seeing those warnings. Maybe set a breakpoint where the console.log is...
View Article