Javascript Array toEvent()

Description

Javascript Array toEvent()


Array.prototype.toEvent = function () {
 return {/* w  ww.jav a 2 s.  c o m*/
        event: this[0],
        id: this[1],
        flags: this[2],
        from_id: this[3],
        timestamp: this[4],
        subject: this[5],
        text: this[6],
        attachements: this[7]
    };
}



PreviousNext

Related