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

Getting 'ReferenceError: "window" is not defined'

First time trying to create production build, so possibly a noob issue.I'm using:js steal\buildjs C:\path\to\app\search.aspx -to C:\temp\buildBut getting:uncaught JavaScript runtime exception:...

View Article


Getting started with Steal.build 3.3... How ?

I read that Steal is ready for production. But I cannot understand how to migrate.I moved many of my new apps from JSMVC3.2.4 to CanJS (keeping the "old" Steal"), then I moved to "CanJs + Require" with...

View Article


Re : Why the empty route fires twice?

I figured out my self that I should be usingcan.route.attr({key: val}, true)to over write existing hash.

View Article

Steal Build Error

When I try and build my app:steal/js steal/buildjs myapp/myapp.htmlI am getting the following error:comparing document position  cboxLoadingGraphic   cboxLoadingOverlay !!!!!!!!!!! ERROR...

View Article

Re : Steal Build Error

The fact that this works with jQuery 1.8.3 makes me think it is a problem with the plugin. I'm not sure it is working properly with 1.9.xWhere does the error originate in the plugin?

View Article


Re : Steal Build Error

It appears to be this line:https://github.com/jackmoore/colorbox/blob/master/jquery.colorbox.js#L405To div tags that at the time of line 405 do not have a parentNode

View Article

Re : Steal Build Error

It's a detached DOM node, but those are used all over the place. I know it will be messy, but can you post a stack trace of the error?

View Article

Re : Steal Build Error

Sure, but where do I get said stack trace?Do I need to run the build with a special flag?Right now this is all I get:link@zelda:~/projects/app$ steal/js steal/buildjs myapp/myapp.html Building to...

View Article


Re : Steal Build Error

The "add" function did change between jquery.1.8.3 and 1.9.1In 1.8.3 there is a check to see if the element isDisconnected which is not done in 1.9.1

View Article


Re : Getting started with Steal.build 3.3... How ?

In the article (http://lihan.me/requirejs-vs-stealjs-vs-seajs/) it is said that stealjs supports node.js. Does it? In what way? 

View Article

To subclass, can't use var Programmer = Person() but need var Programmer =...

It seems that to subclass in can.js, we can usevar Programmer = Person({}); and can't usevar Programmer = Person(); Is it just a convention, or supposedly it seems that Person() can see that there is...

View Article

It seems can.Control's init is not the first initializer?

Is it true for for can.Construct, we can think of its init as the first initializer entry point, while for can.Control, its init seems different that, even if we callvar myControl = new...

View Article

Re : It seems can.Control's init is not the first initializer?

can.Control.prototype.setuphttp://donejs.com/docs.html#!can.Control.prototype.setup

View Article


Re : Steal Build Error

@curtisAny suggestions?

View Article

Re : Converting response on create

Fixed!

View Article


Re : Steal Build Error

Pretty sure that is not it. How did you pinpoint line 405 as being the problem when you did not have a stack trace?I believe adding a -d flag will enable the debugger.

View Article

Re : Steal Build Error

Probably a combination of pure luck and bad ass debugging skills (not!)...Actually I changed line 3643 of env.js to the following to print the element id's of the elements being compared since the...

View Article


CanJS Large Scale Application

Hi all,I would like to know how I can implement a large scale application with an architecture as close as possible to this one Large Scale Application.I'm sure you already know that article and as i...

View Article

Unable to load the app controller using steal

Hi everyone, I am using the latest CanJs and Steal for our application. While loading the controller in main.js file its throwing an error says Cannot read property 'each' of undefined.Is there any way...

View Article

Re : CanJS Large Scale Application

I create can.Observe when application starts. This observe is then passed to each can.Control (widget) which I create. Each widget can listen to observe changes and it can also set new values.On...

View Article
Browsing all 3491 articles
Browse latest View live