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

Re : Turning off live binding

what about serialize()? does it make bindings?Mohamed Cherif BOUCHELAGHEM

View Article


Re : Turning off live binding

Why?Sent from my iPhoneOn Mar 16, 2013, at 3:34 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article


Re : Help With An Error Please

At a minimum you can't have something changing live-bound DOM. This is almost self evident, but I'd accept a patch of the docs that warn of this. It's certainly not a bug because it'd be practically...

View Article

Re : Help With An Error Please

To you, and I'm sure many others, it is self evident, but not to everyone who will use CanJS and live-binding. Yeah, once you think about it for a second or so it makes sense, but for many, I am...

View Article

Re : Turning off live binding

Because in my situation (using a plugin that modifies the live bound DOM), it breaks my app. I wouldn't care if it broke live binding, but not the app. Don't get me wrong. I LOVE live binding and...

View Article


Re : Destroying All Models in a Model.List

Didn't think so. Thank you.

View Article

Re : Turning off live binding

Having an error go off is useful. I'd prefer not to swallow errors and potentially leak and warn users instead. It's probably pretty easy to generate an attr and non-attr version of your helps in the...

View Article

Re : Turning off live binding

Yeah. I am going to do that later tonight. Need to move forward.Thanks again.

View Article


can.Observe.List attr doesn't trigger live binding

So I have an Observe.List of string:var ol = can.Observe.List(['foo', 'bar', 'foobar'])and I insert this in an ejs template:<%ol.each(function(el,i){ %> el <%}%>This updates fine if I...

View Article


Re : EJS problem in IE

It's server under .php beacause I need served remotely from another server. I really need is.

View Article

Re : EJS problem in IE

I've get views local and also have the same problem:this.element.html(can.viewapp/view/index/index.ejs', {}));Error: app_view_index_index_ejs in not defined

View Article

Re : can.Observe.List attr doesn't trigger live binding

I think you are missing a "new" before your declaration of olTry this:var ol = new can.Observe.List(['foo', 'bar', 'foobar']);

View Article

Nested Models With Associations Bug?

I have some models that are nested and can actually be nested within each other. Allow me to clarify.I have a Player, Team and League model. Using the attributes plugin I have established the following...

View Article


Re : can.Observe.List attr doesn't trigger live binding

Yes, my mistake, but only on this post, the 'new' doesn't change the problem.(on my actual setup the observeList comes from a model)

View Article

Re : can.Observe.List attr doesn't trigger live binding

Can you make a fiddle. I think I remember playing around with this a few months ago and I am not sure live binding works on a can.Observe list of strings.But I can certainly be wrong.

View Article


Re : can.Observe.List attr doesn't trigger live binding

Here you are:http://jsfiddle.net/aKsg3/4/

View Article

Re : Nested Models With Associations Bug?

I dont understand all this! I use a php framework in the backend who uses lazy loading appraoch so the list of models contains only the data for a model if it has a forgein key (belongs to relation or...

View Article


Re : Nested Models With Associations Bug?

This is happening because nothing on the page binds an event listener to the models, so canjs garbage-collects them and removes them from the model.store -- but the objects themselves still have a...

View Article

Re : Nested Models With Associations Bug?

Your fiddle still exhibits the issue. If you expand the 3rd player and then open his team property and then the team's players property and then the 3rd player, you will see that you can continue that...

View Article

Re : Nested Models With Associations Bug?

It seems to be happening in modelvar id = attributes[ this.id ],    model = id && this.store[id] ? this.store[id].attr(attributes) : new this( attributes );

View Article
Browsing all 3491 articles
Browse latest View live