An alternative could be to use the release date:
var Prototype = {
Version: '1.6.0.2',
Release: '01/25/2008'
...
};
if(Date(Prototype.Release) >= Date('11/07/2007')) { // 1.6.0 (November
7, 2007)
...
}
On Feb 11, 6:55 pm, tancurrom <[EMAIL PROTECTED]> wrote:
> Build: '5234724'
Be cautious with the use of strings.
e.g. Prototype.Build >= '6102' returns false ('5' < '6').
- Jon L.
On Feb 11, 6:55 pm, tancurrom <[EMAIL PROTECTED]> wrote:
> I think using a build number is considerably easier to manipulate in
> the code. Its considerably more specific that a version number.
> But include both
>
> var Prototype = {
> Build: '5234724',
> Version: '1.6.0.3',
> ...
>
> or
>
> var Prototype = {
> Build: '5234724', // v1.6.0.3
> ...
>
> I can actually think when I'm going to need to call the
> Prototype.Version for my code. Let the librarys match it easier.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" 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/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---