[wp-trac] [WordPress Trac] #20557: Sortable meta boxes are too touchy
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 28 19:14:05 UTC 2012
#20557: Sortable meta boxes are too touchy
------------------------------+---------------------
Reporter: helenyhou | Owner: nacin
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.4
Component: UI | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit |
------------------------------+---------------------
Comment (by azaozz):
Replying to [comment:5 georgestephanis]:
In theory:
- `$('body').hasClass('mobile')` is pretty fast,
- `document.body.className.match(/mobile/)` is few milliseconds faster but
could potentially match something else (class like 'not-mobile'),
- `$(document.body).hasClass('mobile')` is another way to reference the
body and seems a tiny bit faster than the tag name above.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20557#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list