JMVC Model Validation Queries
(JMVC not Can!)I've been reading through the JMVC Model Validation docs and have a few questions which I can't seem to obtain definitive answers for. I hope someone can help!Why is model validation...
View ArticleRe : Can UI positionable flip fit question
If you specify two different collision methods, the first refers to horizontal and the second to vertical. If you specify one, it will apply to both horizontal and vertical.So "flip fit" means- if the...
View ArticleRe : Can UI positionable flip fit question
Thanks, ok, got it. I thought that flip fit means that first it will try to flip and if it doesn't work try to fit. I would also consider adding the option of fitting not by nudging it, but by changing...
View ArticleRe : Can UI positionable flip fit question
And one more, important thing: I didn't find a possibility to pass a containment element (intersecting with borders of which will actually cause the collision), is there a way?
View ArticleRe : Can UI positionable flip fit question
You're right, resizing the element is not something that would make sense for the plugin. You can pass a using function that receives the calculated position and a feedback object. The actual...
View ArticleRe : Can UI positionable flip fit question
I've aready added one https://github.com/bitovi/canui/issues/19
View ArticleRe : JSMVC vs CanJS vs DoneJS
I was just about to ask the same question.How painfull will be the jQueryMX replacement in 3.3?Will I have to rewrite all the classes from $.Class to can.Construct or will it be an alias?Looking...
View ArticleRe : JSMVC vs CanJS vs DoneJS
You don't need to wait, can.js is here quite a long time already. (http://canjs.com ) You will need to refactor all you classes/modules definitions, replace $. with corresponding can. objects and...
View ArticleRe : JSMVC vs CanJS vs DoneJS
Yep, that's the point.Refactoring would need a huge amount of time at this point.If the transition to CanJS does not work seamlessly it will have to wait until there is time for it.
View ArticleRe : JSMVC vs CanJS vs DoneJS
To clarify,JMVC 3.3 is built on CanJS. So you'll have features like live-binding, etc. However, it comes with aliases as well.So:$.Controller === can.Control //behind the scenes.DoneJS === JMVC 4.0 and...
View ArticleRe : JSMVC vs CanJS vs DoneJS
As you can see from https://github.com/bitovi/jquerypp/blob/master/controller/controller.js there will be aliases between CanJS and JMVC API which should make transition easy.
View ArticleRe : JMVC Model Validation Queries
1) It is placed in the init() method because you are basically registering a validator for an attribute name. Init itself will only be called once when instantiating the Observe using the new...
View ArticleTemplated Event Handlers & Observe.List
Hi All,I have a Can.Control that essentially functions as a list of items. I'd like to listen to attribute changes made to individual items in this list.The list is a Model.List, which is bound to my...
View Articleempty route does not fire on this JSFiddle
Code: http://jsfiddle.net/pJTWm/2/There is no error happen, but the empty route does not get called. What I missed here? Thanks.
View ArticleRe : steal build silently fails, non deterministically, on some machines
A bit more investigation has shown further where the problem is. It appears there are actually two issues.The first is specific to EJS files, when the build completely fails (only outputs the first...
View ArticleRe : steal build silently fails, non deterministically, on some machines
We also saw this, discussing what sounds like a connected issue in EnvJS 1.2:https://groups.google.com/forum/#!msg/envjs/kE8VvAlJ5-8/UThGH2X5CewJHas anyone successfully swapped over to EnvJS 1.3 ?
View ArticleRe : Templated Event Listener Handler Debugging Tools
I did a lot of research on this tonight.I set up a sample Web page to examine this issue, which simply contains two links with different types of event handlers. The first uses jQuery .on(); the...
View ArticleRe : Templated Event Listener Handler Debugging Tools
#1, #2You see the internals of CanJS, because technically that is the handler for the event. A breakpoint inside that function will point you towards the actual method in the Control that is...
View ArticleRe : JMVC Model Validation Queries
Hello Daff,Thanks for the reply.OK, so if I had a model that had nested models how would I validate the nested models? AFAIK you invoke validation by either save() or this.attr() - how would I manually...
View Article