-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original model not updated #60
Comments
Hi, thanks for bringing this up. Right now Agility assumes your model lives inside Agility objects. This assumption works well for most things I can think of, but of course not all possible scenarios. Can you please elaborate on your application/use case? |
Hi, thanks for asking. :-) Background: Use cases: On the more hypothetical side I can imagine that the components have to interact with each other somehow. At least for this month I don't think I will be able to work further on this part of the architecture. Best regards, Ole |
Hi there, I can start to imagine what your use case would look like. So what you're saying is that your model is so big that you want By the way, are you using Agility in production already? If so, would Thanks! On Fri, Dec 9, 2011 at 7:24 AM, ole108
|
Hi, so far I have only a small spike. I can't continue work on it right now. I have 2 typical use cases: A dynamic form with feedback and a configurable list of inputs. The configurability of the UI is its key feature. So I can't reduce on that. Thanks for your help! |
Not really sure how to help you out here, sorry :( Do keep me posted if you decide to go with Agility for your final product, and we can feature it in our Gallery page. |
I would like agility to update the original model object I give to the factory function '$$()'.
This helps especially with big trees of agility components (e.g. Tables with hundreds of components).
I would like to have only one source of truth for the model.
I made a patch that takes the original model object instead of doing '$.extend(...)' and and throws an exception if the new model is non-empty and the model inherited from the prototype is non-empty too.
This works great for me and should save some memory at runtime.
Of course this behaviour is undesired for views and controllers.
Here is my Test-HTML:
Of course I would be willing to provide my patch (its quite small with two additional util functions).
But of course I am unsure if you like such a thing at all.
But for me its a plain bug since the view isn't bound to the model I provided.
The text was updated successfully, but these errors were encountered: