[wp-trac] [WordPress Trac] #26088: Fix the JS structure of sticky menu
WordPress Trac
noreply at wordpress.org
Sun Nov 17 19:41:39 UTC 2013
#26088: Fix the JS structure of sticky menu
----------------------------+----------------------
Reporter: azaozz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.8
Component: Administration | Version: trunk
Severity: normal | Keywords: ui-focus
----------------------------+----------------------
`stickyMenu` (in common.js) seems to be suffering from scope problems,
nearly all lines start with `this`. There are better JS structures that
can be used for it, for example a simple [http://carldanley.com/js-
revealing-module-pattern/ revealing pattern] would work nicely.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26088>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list