On Sat, Feb 09, 2008 at 01:36:39AM -0800, dolm...@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?
> On Sat, Feb 09, 2008 at 01:36:39AM -0800, dolm...@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?
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 = {};"?
> 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: > > On Sat, Feb 09, 2008 at 01:36:39AM -0800, dolm...@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?
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 = {};"?
> > 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:
> > > On Sat, Feb 09, 2008 at 01:36:39AM -0800, dolm...@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
> --
> Sincerely,
> 孙一鸣 Simon Sun
> --
> Be a man with simple interface.