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

Re : jquerypp fastfix

I don't know jQuery 2.1's event system well enough to know this.  Does it still add all properties at once, or does it use getter setters like fastfix?

View Article



Re : can.fixture and requests distinguishing by query params

No, but this would be a nice feature.  Can you create an issue in github and we could add this in future releases.

View Article

Re : / (slash) convets to %2F with pushstate

right

View Article

Re : jquerypp fastfix

I'm not quite into jquery internals, I thought jquerypp creators can consult.

View Article

What's the best approach for initializing a Component after it's template is...

Hey folks,I'm trying to make JS calls to modify the DOM generated by a Component and its mustache template, to initialize some layout state. If I try to do this in a Component's scope's init()...

View Article


Re : What's the best approach for initializing a Component after it's...

You should do this in  an inserted event.  However the template elements have been added to the component's element by init.  However, the component element has not been added to the DOM yet.The...

View Article

Re : steal build error => java.lang.OutOfMemoryError: Java heap space

Hi JustinYes.. We have a major deployment next week. I'll start migrating to the new StealJS right after that goes out. Patrick

View Article

Re : What's the best approach for initializing a Component after it's...

Thanks for the quick reply. My understanding is that the elements are in fact created by the time we get to init(), but they haven't been added to the DOM, which is why JQuery selectors can't find...

View Article


Re : What's the best approach for initializing a Component after it's...

The tabs example uses it:  http://canjs.com/docs/can.Component.htmlYou should never really use document rooted selectors within a module. Something like: $(".foo").

View Article


Re : Model inheritance and parseModel functionality

Thanks Justin,I created an issue with tests here https://github.com/bitovi/canjs/issues/1059

View Article

How can I do nested bindings without cross binding with can.Component?

Hi,I've been having a lot of issues with doing event bindings to events emitted from properties. I made an example to illustrate. The real issue I'm running into is that there doesn't seem to be any...

View Article

Re : How can I do nested bindings without cross binding with can.Component?

In your example'{app.singer} shout' is binding shout event on concrete app.singer (can.Map) instance while control's (component events) init.Do you want '{app.singer} shout' to be rebound every time...

View Article

Re : Live Binding in IE8: low performance and ability to disable live binding...

Thanks for the update, Justin.BTW, as for the second part of the topic, it would be still cool to have ability to pause/resume binding for specific view. Imagine we have a tab pane, which content for...

View Article


Re : How can I do nested bindings without cross binding with can.Component?

Do the equivalent of {app} singer.short is exactly what I was looking for actually, however in my case I'm more interested in custom events emitted by the "current" instance.Rebinding would suffice,...

View Article

Re : How can I do nested bindings without cross binding with can.Component?

Ok I found where I went awry. It appears that using can.extend(App.prototype, can.event) actually breaks the event bubbling that allows for something like {app}...

View Article


Re : Live Binding in IE8: low performance and ability to disable live binding...

Could you just hide all the content when the panel is hidden?  That way nothing would update.  Just redraw it when the user switches.I'm not sure what you mean by pause / resume events, what that would...

View Article

Re : What's the best approach for initializing a Component after it's...

Thanks again, Justin! inserted() is just what I was looking for.Can you expand on not using document rooted selectors within a module? The whys, and what one should do instead?

View Article


Re : What's the best approach for initializing a Component after it's...

because your module is not isolated in scope to the DOM it acts upon. You should have rooted selectors like this.element.find(".foo").

View Article

can-compile on Windows 7 ... does it work for anyone?

followed all steps recommended here https://github.com/daffl/can-compile/issues/19 but still get errors on NPM install.  Running current node v0.10.28.C:\Windows\system32>npm install can-compile...

View Article

bug in view.mustache when passing partials in options

I found what I believe is a bug in canjs.com-2.1.1/amd/can/view/The following if statement on lines 1694--1696:                if (scope.attr('partial')) {                    partial =...

View Article
Browsing all 3491 articles
Browse latest View live




Latest Images