when I open firefox error console, there are quite a few warning messages...

6 views
Skip to first unread message

dol...@gmail.com

unread,
Feb 9, 2008, 4:36:39 AM2/9/08
to JSAN Users
like `anonymous function does not always return a value - line 201
JSAN.js', it's annoying, is there someone who cares it besides me?

Thank you.

Simon Sun.

John Cappiello

unread,
Feb 11, 2008, 2:37:27 PM2/11/08
to js...@googlegroups.com
On Sat, Feb 09, 2008 at 01:36:39AM -0800, dol...@gmail.com wrote:
> like `anonymous function does not always return a value - line 201
> JSAN.js', it's annoying, is there someone who cares it besides me?

I have not seen this, but I'll check. Do you have strict on?


--
jcap

Burak Gürsoy

unread,
Feb 12, 2008, 2:27:25 PM2/12/08
to JSAN Users
FYI: You can get the same warning with ActiveState Komodo. Putting a
" return null;" to that line will silence it...

On 11 Şubat, 21:37, John Cappiello <j...@apt202.net> wrote:

Sun Yi-Ming

unread,
Feb 12, 2008, 8:32:19 PM2/12/08
to js...@googlegroups.com
I know, I just thought that as a minus bug.
In many other modules, say Ajax.js, in line 40
`if (! this.Ajax) Ajax = {};' will issue a message 'assignment to
undeclared variable Ajax', does this need to be "var Ajax = {};"?

2008/2/13, Burak Gürsoy <burak...@gmx.net>:


--
Sincerely,

孙一鸣 Simon Sun
--
Be a man with simple interface.

Burak Gürsoy

unread,
Feb 22, 2008, 4:23:28 PM2/22/08
to JSAN Users
Actually, this is not an error but a warning. My codes have this too.
However, since the master site is down for almost 4 months, this can't
be easily fixed I believe :p

But you're right the Ajax code is buggy. It must be

if (! Ajax) Ajax = {};

or

if ( typeof(Ajax) == "undefined" ) Ajax = {};


On 13 Şubat, 03:32, "Sun Yi-Ming" <dolm...@gmail.com> wrote:
> I know, I just thought that as a minus bug.
> In many other modules, say Ajax.js, in line 40
> `if (! this.Ajax) Ajax = {};' will issue a message 'assignment to
> undeclared variable Ajax', does this need to be "var Ajax = {};"?
>
> 2008/2/13, Burak Gürsoy <burakgur...@gmx.net>:
Reply all
Reply to author
Forward
0 new messages