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

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 Article


Re : Making UN-Observables

http://canjs.com/docs/can.Map.prototype.serialize.html

View Article


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

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

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


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

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

Re : attributes in camelCase don't work

Thanks alex, will keep that in mind - i'll convert to dashes then.

View Article


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


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

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

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

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


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

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


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

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


Re : How can I override can.Component's lookup function?

Also, can.route is typically the "global" state.

View Article

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

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