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

Re : Is this.options like properties of the objects as defined and created by...

Nope, a options object is used to allow setting a option that would conflict with a method of the control. Sent from my iPhoneOn Apr 18, 2013, at 11:45 PM, JavaScriptMVC Forum...

View Article


Re : do you think you can add the back tick for code in the forum?

We don't have access to the forum's code. Please request this of zoho. Sent from my iPhoneOn Apr 19, 2013, at 12:15 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article


Re : Click event is called twice

Now stopPropagation works. But it doesn't solut the problem.Event is still fired twice.

View Article

Re : Click event is called twice

Probably you instantiate twice your controller.That was my problem, and after check this, I solved.

View Article

Using a suffix breaks steal in IE

We're using steal's suffix config to add a cachebuster when stealing dependencies. IE works fine when there isn't any suffix/cachebuster, but as soon as we add one IE stops loading modules properly: we...

View Article


can.Observe objects or can.compute() can bind("change", function() { ... });...

I have a situation where the Back button on the browser would go back to the previous page, but the input text box is empty, and I checked that the myControl.options.val()still has the value.   (val is...

View Article

Re : can.Observe objects or can.compute() can bind("change", function() { ......

You can use can.trigger to accomplish this:var value = myControl.options.val();can.trigger(myControl.options.val, 'change', [value, value]);The data that is expected with a compute's change event is...

View Article

Re : can.Observe objects or can.compute() can bind("change", function() { ......

It does work well.  Would you consider moving it / adding it as a method of can.compute() and can.Observe object so that val.bind("   ")is parallel toval.trigger("   ")  ?

View Article


Re : do you think you can add the back tick for code in the forum?

just found there is an "insert code" button that works quite ok, even though it is for "block level" only, not for inline.would the style be customizable?  Or can it be suggested to zoho that right now...

View Article


Re : can.Observe objects or can.compute() can bind("change", function() { ......

Add it as an issue to the CanJS repo. Since compute and Observe both have bind and unbind, I think trigger is a logical function to add to both.

View Article

Re : can.Observe objects or can.compute() can bind("change", function() { ......

I'm confused by your use case. Why do you need to trigger the change exactly?Sent from my iPhoneOn Apr 19, 2013, at 9:35 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article

Re : steal build silently fails, non deterministically, on some machines

We experience the same intermittent behavior, with JavascriptMVC 3.2 (pre-CanJS) on OSX. We're using the multi-build feature on around 20 apps, and when it occurs, one of the apps will not be packaged....

View Article

Re : Click event is called twice

You're right. It is initi twice. But i don't know why. I just call new one time in my steal script...Is there any possibility to get the calling function

View Article


Supported Pattern or Memory Leak?

Is the following a supported pattern or will it result in a memory leak?In a can.Control I create a can.compute on a some model attributes:var self = this;MyModel.findOne({id:...

View Article

Re : CanJS Memory Leak!

So some additional testing has uncovered some issues with this fix.As I navigate about my app, I ran into a "maximum call stack exceeded" error. This occurs when I switch between different views of the...

View Article


Re : Is there a plan to support MVVM style live two way live binding. Also...

If you want to use bindings inside your html like Angular or knockout does with CanJS have a look at http://rivetsjs.com/, it provides you with that and it is easy to integrate with CanJS. We have use...

View Article

Re : Supported Pattern or Memory Leak?

What are you seeing? Can you create a small fiddle, etc ...Sent from my iPhoneOn Apr 20, 2013, at 7:55 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article


Re : CanJS Memory Leak!

Can you create a small fiddle showing the problem?Sent from my iPhoneOn Apr 20, 2013, at 9:25 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article

Re : Is there a plan to support MVVM style live two way live binding. Also...

@sebasporto thanks for the mention of rivetsjs.com, actually I have seen this already and its quite small and without dependencies with namespacing technique in data-namespace-* attributes, but the...

View Article

Live Binding Question

How does live binding get torn down? If I have a control that appends some DOM to it's element (this.element) using EJS that sets up live binding and the control's DOM element is removed, thus removing...

View Article
Browsing all 3491 articles
Browse latest View live