Ticket #162 (closed defect: invalid)

Opened 8 years ago

Last modified 8 years ago

fix xinha_init code in examples

Reported by: akaEdge Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: normal Keywords:
Cc:

Description

Please fix the window.onload = xinha_init; line in the example files to be window.onload = xinha_init();

I have change the Newbie Guide to reflect this change - and there is a post about why it should be changed in the Newbie Guide thread

Change History

Changed 8 years ago by gogo

  • status changed from new to closed
  • resolution set to invalid

This is incorrect code, window.onload = xinha_init(); assigns the result of xinha_init() to be window.onload, where window.onload = xinha_init; assigns the function to be window.onload, which is what is required. Closing invalid.

Note: See TracTickets for help on using tickets.