Opened 10 years ago
Closed 10 years ago
#13729 closed defect (worksforme)
ScrollingTabController .style on NodeList
Reported by: | tobi | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
ScrollingTabController is not working in Dojo build. Chrome console output:
Uncaught TypeError: Cannot call method 'apply' of undefined.
This fixes the bug:
Modified: TAGS/DOJO/release-1.6.1/dijit/layout/ScrollingTabController.js @@ -165,8 +165,11 @@ // Show/hide the left/right/menu navigation buttons depending on whether or not they // are needed. var enable = this._enableBtn(this._contentBox.w); - this._buttons.style("display", enable ? "" : "none"); + dojo.forEach(this._buttons, function(elem) { + dojo.style(elem, "display", enable ? "" : "none"); + }); // Position and size the navigation buttons and the tablist this._leftBtn.layoutAlign = "left"; this._rightBtn.layoutAlign = "right";
Change History (1)
comment:1 Changed 10 years ago by
Component: | General → Dijit |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
You must be using an old build, or something weird like running dijit 1.6 against the latest dojo? The bug you are talking about was fixed in [26197]. If it still happens for you with the latest code or with 1.6 please attach the test case that's failing, and listing what dojo version and browser it fails on.