Ticket #2271 (closed defect: fixed)

Opened 11 months ago

Last modified 6 weeks ago

javascript event handlers rendered twice in HTML source

Reported by: mrickerby Owned by: aoneil
Priority: medium Milestone:
Component: (Unknown) Version: 2.2.2-rc1
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

As per the comment in the generated JS code:

// TODO Performance-issue: Behaviour is possibly applied twice

Not just possibly, it's definitely... the code to register event handlers is being rendered out twice. I'm not sure if this bug is already in trac, sorry if it is, but doing a search, I couldn't uncover any references to it, so am adding it now.

Change History

Changed 11 months ago by ischommer

the code to register event handlers is being rendered out twice

which code are you referring to? form-validation? cms-ui-logic? in which file was this comment posted?

Changed 11 months ago by mrickerby

It's javascript form validation...

The comment in the JS that notes this is in the Validate.php file, but it's hard to tell directly from this how the strings are being put together.

Changed 6 weeks ago by ischommer

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

Fixed in r66251

Note: See TracTickets for help on using tickets.