On Jan 8, 4:40 am, Chrilith <[email protected]> wrote:
> Roger, I usuggest you to learn a bit more how javascript works.
>
Oh brother.
> > This is a mistake. The window object is a host object, so it should
> > not be augmented. This also assumes that the global window property
> > references the Global Object. The proper way to do this is to store a
> > reference to the Global Object prior to entering the one-off function.
>
> Try this:
>
> var a = "test";
> alert(window.a);
And what is that supposed to prove?
>
> Oh, my god, I've expanded the window object!!!! As you said earlier
You don't seem to get it. In the vast majority of browsers, the
window object is a reference to the Global Object. Assuming that is
true in all browsers is not good practice.
> yes, context is important in javascript (this is why there are apply
> and call methods which let us change the context), and the default
I think he meant the context of the application. Of course, it is
hard to tell as he is now "banned." That's the problem with moderated
discussions.
> context here is "window" - so what's wrong with expando, could you
> argument on this?
Actually, the context is the Global Object, which by coincidence is
the same as the window object.
>
> > if (hasClass(page, "dialog"))
>
> > Will be interesting to see the latest re-invention of this particular
> > wheel.
>
> Not sure you've taken a look at "mylib" by David Mark.... what's the
Sure have!
> purpose of the "createElement" function, oh reinvent the wheel....
Don't follow that, but the createElement wrapper is there so apps can
support HTML or XHTML DOM's. Never seen it anywhere else either.
> ok... Well, ok, I must admit that I haven't take a deeper look at
> "mylib", but it seems you haven't too with iUI (even if I don't really
> like iUI and widely agree with you very last comment) - Anyway, what
> javascript method let you know if the element have a particular class?
The point appears to be that part of this library is a rewrite of the
previous magic bullet libraries like jQuery, Prototype, etc.
Ironically, if those libraries really were magic, we wouldn't need yet
another do-everything library for these devices. And the rewrites are
severely lacking, indicating a lack of experience by the author.
>
> > That is going to be one hellaciously slow animation. Why aren't
> > people using those Web 2.0 wonder libraries for this stuff? Oh yeah,
> > they are too big, too slow and aren't cross-browser at all. So here
> > we are re-inventing animations.
> > Not even close. Here we are re-inventing form serialization.
> > Prototype, jQuery, etc. didn't really work out as advertised, did
> > they?
>
> http://www.cinsoft.net/mylib-doc.asp?view=object
> Yes, "mylib" never reinvents the wheel (again)...
Not sure what that means.
>
> This time you did some interesting remarks, you're going the right way
> and I must admit that "mylib" seems interesting in some points and
> have a good documentation.
>
> Please, stop denigrate and be more constructive.
This from the person who stirred up trouble with the moderators and
got this poster "banned?" Seems anything that criticizes iUI in here
is "denigration." The suggested alternative was to rewrite it instead
of reviewing it. This really is the Twilight Zone.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---