Re : Loading class parent automatically
Each class file would define it's own dependencies, so nothing automatic has to happen.ParentClass.jssteal'can/construct', ('dependencyA', 'dependencyB', function(Construct, A, B) { return...
View ArticleRe : Destroy deleted models
Are you using can.Model? It sounds like you just have a giant Object in memory and are manipulating that. Can you put an example of the code in a jsFiddle (doesn't have to work) just so we can see how...
View ArticleRe : "$.each is not a function" inside an EJS template
Can you create a fiddle with this breaking?It looks like $ is defined, but each isn't there, which is very weird. Do you modify $ or include any jQuery plugins?can.$ is an internal reference to the...
View ArticleRe : Any hints of what is wrong?
You may have found a bug in the script that bundles the custom version of CanJS. The fiddle I created has all of the plugins loaded, but they are individual files.Can you narrow down which plugin...
View ArticleRe : Odd binding issue with view + helper + Observe.List
Wow! This is a pretty tricky situation.First off, you have to understand that calling l.asOptionsC() actually has an attr() call because this.forEach calls can.each which has this little nugget of code...
View ArticleRe : Destroy deleted models
Yes I am using can.Model, I have a standard restful API with some nested models. This is quite hard to fiddle, since it involves at least 2 clients and a server. Either client can operate as a...
View ArticleRe : Destroy deleted models
Can you draw an image of this and maybe we'll make a weekly widget out of it. Btw, JMVC's model store is designed for server side events. It could be ported to canjs. Sent from my iPhoneOn Feb 2, 2013,...
View ArticleRe : Destroy deleted models
It looks like you are looking for the destroyed event. Sent from my iPhoneOn Feb 2, 2013, at 11:29 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View ArticleRe : Odd binding issue with view + helper + Observe.List
Wow. Very interesting.Thanks for taking the time to give us a thorough explanation.
View ArticleRe : Loading class parent automatically
Hi All,Thank you for your replies, and thanks to Curtis for your disambiguation.However, I see a problem with this approach. The name "Parent" appears at least twice here. Is there a way to define the...
View ArticleRe : Loading class parent automatically
Can you elaborate on why you think this is a problem? The "Parent" used twice here refers to the exact same thing (the class returned by ParentClass.js).The next release of JMVC (version 3.3) will use...
View ArticleRe : Destroy deleted models
So I need to manually trigger a destroyed event on the Photo#y? How do I do that? I would guess Photo.store[y].trigger('destroyed') but I don't think there is a trigger method on can.Observes? Can you...
View ArticleRe : "$.each is not a function" inside an EJS template
It might be difficult to create a fiddle for this, as my project has many files.I use jQuery UI, underscore, sugar, flashcanvas and modernizr (beside canjs and jQuery).Strange is that the problem seems...
View ArticleIs it already save to migrate to DoneJS?
Hi,we are using the following features from JavascriptMVC (last successful pull from github was in April last year) in our applications:* jquery/class* jquery/controller* jquery/model* jquery/view/ejs*...
View ArticleRe : Build issue
Here is some update on the issue. Actually before it worked on my computer and did not work on my colleague's computer. This weekend I re-installed OS from Win 7 32 bits to Win 7 64 bits and got the...
View ArticleRe : Build issue
Did u try the solution above ? We too had similar issue, try the above solution and see if it works for u .. Gud luk:-)
View ArticleRe : Build issue
Yes, as I wrote, solution worked for me, thanks! I just want to get deeper into the problem.So after additional researches I found the issue is with Java SDK x64. Once I'm switching JAVA_HOME/PATH...
View ArticleSteal different files for dev mode and build (prod)
Is there a way some how to steal different files while developing and building application?For example I have module that defines API endpoints for dev mode API endpoint looks...
View ArticleCan.Control and Drop Events
I have two Can.Controls, each on a unordered list. I'd like to listen to drop events from one list of lis onto inputs in the other list. What's the best way to do this?Currently in my receiving UL I...
View Article