#16227 closed enhancement (duplicate)
Stop Firebug from borking on missing convertEntities()
Reported by: | mikeschinkel | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | General | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
Firebug breaks on the following line which makes JavaScript debugging extremely tedious:
try{convertEntities(blahblah);}catch(e){};
I believe the following should accomplish the same thing without causing Firebug to bork:
if (typeof convertEntities=="function"){convertEntities(blahblah);}
I've attached a patch to change these.
This may already have been addressed by #15124 and if so forgive me but I could not tell for sure.
Attachments (1)
Change History (7)
#2
@
14 years ago
Not sure, but if I use Firebug it always breaks on them. Can't you look at the patch to see the relevence?
#3
follow-up:
↓ 4
@
14 years ago
On which page you can see the error message? It means, that there is an error with the loading of the script. Your patch will not help then.
#4
in reply to:
↑ 3
@
14 years ago
Replying to ocean90:
On which page you can see the error message? It means, that there is an error with the loading of the script. Your patch will not help then.
You misunderstand. Without the patch I get this when debugging with Firebug:
With the patch Firebug does not break on the error in every page load in the admin.
#5
@
14 years ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Ok.
So quicktags translations then.
This is fixed in 3.1
Your patch is broken because it removes the calls to convertEntities if the function isn't there rather than fixing the fact that it isn't there.
Closing as a dupe of #15124
Changes call to convertEntities() so Firebug doesn't always break on those calls