[wp-trac] Re: [WordPress Trac] #3343: Delete categories JavaScript
error: Object doesn't support this property or method.
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 18 23:57:46 GMT 2007
#3343: Delete categories JavaScript error: Object doesn't support this property or
method.
----------------------------+-----------------------------------------------
Reporter: dan-daemon | Owner: mdawaffe
Type: defect | Status: assigned
Priority: normal | Milestone: 2.1
Component: Administration | Version: 2.1
Severity: normal | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Changes (by mdawaffe):
* status: new => assigned
* owner: anonymous => mdawaffe
Comment:
I believe this is because most of WP's JS tries to use prototype's
Element.x functions as extensions to the native JS element object like
good little object oriented scripts.
But those extensions aren't reliable in all browsers. It's better to use
Element.hide($('element_id'));, for example, than $('element_id').hide();
Patch
1. Converts all WP core JS to use Element.method(el) rather than
el.method();
1. Fixes wp-ajax JS parser for IE 7.
--
Ticket URL: <http://trac.wordpress.org/ticket/3343#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list