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

Re : Remove 'new' keyword when creating a can.Observe

To expand on sebasporto's comment, all of CanJS' classes have this same behavior.For Example, can.Construct, can.Control and can.Model are extended by not using new. To create an instance of one of...

View Article


Disable script!

How can i disable all script on my website? Anyone can help me, thank so much...usb 3.0, memory zone, the nho sd

View Article


Disable script!

How can i disable all script on my website? Anyone can help me, thank so much...usb 3.0, memory zone, the nho sd

View Article

Disable script!

How can i disable all script on my website? Anyone can help me, thank so much...usb 3.0, memory zone, the nho sd

View Article

steal build silently fails, non deterministically, on some machines

We have run into a problem with the steal production build failing silently, some times, on some machines. When it fails it just displays "Building to foo/" and then stops.There are no error messages....

View Article


Re : Remove 'new' keyword when creating a can.Observe

I'm not taking issue with the implementation of can.Observe. I fully understand what you all are saying about how these objects are composed. My problem i'm sure goes away after accumulating some...

View Article

Re : Remove 'new' keyword when creating a can.Observe

I think you might not also have realized that people also inherit from can.Observe.  The event handler analogy is pretty far off. Inheriting from a Contol/Model/etc is quite different than creating an...

View Article

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

I've not seen this. If you can send us something that fails, we will take a look at it. Sent from my iPhoneOn Apr 18, 2013, at 9:35 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article


Re : Click event is called twice

Do you have a solution. I have the same problem.

View Article


Re : EJS and @@!!@@

I got caught up on this as well. Apparently the string "@@!!@@" is like search engine dark matter because even google ignores it. I also got  __!!__ at some point which i'm assuming is related.When you...

View Article

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

We have silent, intermittent failures as well, using canjs. I investigated pretty deeply into StealJS, and tried to get some output from debug mode, but couldn't find anything.Our build process runs...

View Article

A couple of questions about Observes

I have a couple of questions about Observes and the best practices on how to use them.  The getter functionality seems to have been removed, I'm wondering why that is?  Is there a common mechanism used...

View Article

Re : A couple of questions about Observes

It's a plugin. You can create a fullName as a function on the prototype likefullName: fn(){  return this.attr('first')+this.attr('last')}If fullName called in a template, it will automatically be live...

View Article


Re : A couple of questions about Observes

Thanks, that's good to know, I didn't realize  you could live bind a method like that, that will be helpful.

View Article

What is can.compute() without any argument?

What is var foo = can.compute();that is, without any argument?Is it pretty much just like can.compute(3), or can.compute(0), which is just to create a function that acts as both a getter and setter for...

View Article


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

That sounds kind of similar.By adding a lot of print() statements around the build code, I think the failure is somewhere in the interaction between Envjs and steal. I don't know whether canjs uses the...

View Article

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

Thanks Justin, I'm trying to come up with a minimal application that causes the failure.

View Article


Re : Click event is called twice

I tried '#main_download click': function(event){        event.stopPropagation();....Uncaught TypeError: Object [object Object] has no method 'stopPropagation'I use JMVC3.2.4 in combination with...

View Article

Re : Click event is called twice

What is a "document controller" ?!?

View Article

Re : Click event is called twice

You will get'#main_download click': function(element, event){With the first argument being the element that has been clicked.

View Article
Browsing all 3491 articles
Browse latest View live