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

Re : "each" helper: change item position without removing and inserting...

Thanks!

View Article


StealJS in production module that can not find "global" object.

@matthewp module in dev mode referece to global.indexedDB and global there is window object, but after build it can not access global inside the module. Something wrong with module format?

View Article


event.stopPropagation() is missing

Hi guys, I finally have an opportunity to upgrade my JS framework. I've been using JavascriptMVC since 2010. I studied up on the alternatives for new coolness and it turns out that it's offspring,...

View Article

Re : event.stopPropagation() is missing

As with JMVC, CanJS hands (element, event) to the handler. I don't think that's true.  I think it calls the event handler with context, element, event.  Also, you can control what is passed:...

View Article

Re : event.stopPropagation() is missing

That did the job and thanks for the reference. tqii ps, This is off-topic, but, I really enjoyed to your CanJS St Louis meetup video. Were I a professor someplace, I think I would teach a semester off...

View Article


Access xhr object in findOne's success callback or model init?

Normally when I do a jQuery ajax request I can use a beforeSend function to set this.something on the xhr object for that specific request.  So when I get the callback I can have access to...

View Article

Temporarily disable routing

Hi Can I temporarily disable routing? Or perhaps any observable map? Basically until a certain condition is met, I want the routing disabled, and then I want to turn it on. Then again if another...

View Article

Re : Temporarily disable routing

So I did some research on the code.. and it seems that you can simply do the following: 1) Initialize can.route as usual using can.route.ready() 2) Whenever you need to disable the routing, just run...

View Article


steal is executing 1.5 million statments before executing application code...

Steal version we are using is - "version" : "3.3.0pre", We have also created a sample test app which steals 500 files with dependency depth of 3 and there are total  240k calls made to different...

View Article


How do I load the new Can with Mootools?

I am setting up an example project using steal 0.10.5, Can. 2.3 and Mootools.I'm bringing the packages in via bower. How do I override the bower.json file in canjs from using can.jquery.js and instead...

View Article

Re : How do I load the new Can with Mootools?

Figured out that it's the following paths override in bower.json "canjs": "bower_components/canjs/can.mootools.js" now I have to figure out how to define mootools as a dependency for canjs Edit: to be...

View Article

Re : steal is executing 1.5 million statments before executing application...

Could you upgrade to the latest steal?  It's a million times better and mostly backwards compatible.

View Article

Re : steal is executing 1.5 million statments before executing application...

Today I am planning to run the sample unit test case with latest steal version and see if it is reproducible. I will keep you posted.

View Article


Correcting the Difference of stealconfig.js in the "can" and "steal" folders

Hi, though this not a major issues, it may have an impact in the long term. the setting for steal configure paths for the jquery are different in each of can/lib/stealconfig.js and...

View Article

Re : steal is executing 1.5 million statments before executing application...

We are using JMVC 3.3 and it has steal version "3.3.0pre". There us no JMVC release after 3.3? The latest steal is divided into steal core and steal build tools. We are having problems in building with...

View Article


When is next version of JMVC coming out after v3.3 and Is there a migration...

Hello All,  So I am currently using JMVC v3.3 specifically "3.3.0pre" and currently having the "Script on this page is causing IE to run slowly", There is already an issue open for this here...

View Article

Accessing

When creating a can.Component is there a way to access and manipulate the DOM embedded within the component's tag? For example. If I have: <my-component>   <section id="a">...

View Article


Dealing with subclasses

Hi, //I have a model class called  Portal.Document = can.Model({},{}); //and a couple of subclass Portal.WordDocument = Portal.Document({}, {}); Portal.ExcelDocument = Portal.Document({}, {}); // In my...

View Article

Re : can.Model.List: Should it automatically update when model created/updated

Hi,In canjs 1.1, for new models I think you need to push into the list. This makes sense, for example, say it is a list of TODO items that are "Done", CanJS wouldn't automatically "know" if your newly...

View Article

Re : Accessing

Is there a way to do something like: <content selector='section'></content>

View Article
Browsing all 3491 articles
Browse latest View live