Ticket #3 (closed defect: fixed)
GearsORM cannot run in IE
| Reported by: | shumpei | Owned by: | uriel |
|---|---|---|---|
| Priority: | major | Component: | GearsORM |
| Version: | 3.0 | Keywords: | |
| Cc: |
Description
Some syntax used in GearsORM is invalid for IE.
First, in GearsORM.Model.js (line number is 202 and 203 at rev 341), now using the string's "[]" operator.
if(i[0] != "_")//wrap only public functions
This syntax is not supported by IE, I suppose you can use charAt(idx) instead.
if(i.charAt(0) != "_")//wrap only public functions
And, next probrem is very very little... sorry uriel.
In GearsORM.Introspection.js (line number is 36 at rev 341), extra camma is disliked by IE.
fields:
{
type:new GearsORM.Fields.String(),
name:new GearsORM.Fields.String(),
tbl_name:new GearsORM.Fields.String(),
rootpage:new GearsORM.Fields.Integer(),
sql:new GearsORM.Fields.String(), <----- IE hate this camma
}
thanks.
Change History
Note: See
TracTickets for help on using
tickets.
