Opened 15 years ago

Closed 14 years ago

#162 closed defect (invalid)

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 (1)

comment:1 Changed 14 years ago by gogo

  • Resolution set to invalid
  • Status changed from new to closed

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.