On 11/25/06, Michael Geary <[EMAIL PROTECTED]> wrote:
>
> So what was *really* missing here was a comma, not a semicolon - because the
> function definitions were all supposed to be part of that one "var"
> statement.
>
> Instead, the JavaScript interpeter sees that it can't parse the code as is,
>
Michael Geary schrieb:
> So what was *really* missing here was a comma, not a semicolon - because the
> function definitions were all supposed to be part of that one "var"
> statement.
>
> Instead, the JavaScript interpeter sees that it can't parse the code as is,
> and it inserts a semicolon after
> From: Michael Geary
> > Also, that comma after the } shouldn't be there. It looks like you
> > picked up the use of the comma from object literals...
> From: Jörn Zaefferer
> Actually there is a single "var" at the top, therefore the
> problem must be somewhere else... My fault, I should
> rem
Michael Geary schrieb:
> Also, that comma after the } shouldn't be there. It looks like you picked up
> the use of the comma from object literals such as:
>
Actually there is a single "var" at the top, therefore the problem must
be somewhere else... My fault, I should remove that stuff from the
> I have two plugin(A and B) each of this has a handle.
> When load these two plugin(Order: A, B) in one page,
> plugin B will using A.handle instead of B.handle which
> is wrong.
If you were using a closure I don't see why that would happen, since the
name is only in the scope of the closure
> I really have no idea what is the correct name(I'm not a
> javascript guru), handle is a function in function(or jQuery?) scope?
> You know , i just copy your code structure. xD
>
> Demo page:
> http://61.191.26.228/jQuery/plugins/modal/test.html
Your functions named plugin, modal_handle, mod
On 11/24/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> What you you mean by "handle"? Could you post a demo page or some code
> we could look at?
>
I really have no idea what is the correct name(I'm not a javascript
guru), handle is a function in function(or jQuery?) scope?
You know , i just co
epaulin schrieb:
> hi,
>
> I'm using the closure trick for my plugin which learn from Jorn
> Zaefferer's tooltip,
>
> My plugin structure totally the same with tooltip, and the problem is,
> I have two plugin(A and B) each of this has a handle. When load
> these two plugin(Order: A, B) in one pa
hi,
I'm using the closure trick for my plugin which learn from Jorn
Zaefferer's tooltip,
My plugin structure totally the same with tooltip, and the problem is,
I have two plugin(A and B) each of this has a handle. When load
these two plugin(Order: A, B) in one page, plugin B will using
A.hand