toolbar.js requires a global variable "UI"
Bug #1222878 reported by
Daniel Beck
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu HTML5 UI SDK |
Fix Released
|
High
|
Adnane Belmadiaf | ||
ubuntu-html5-theme (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Saucy |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
toolbar.js requires a global variable "UI". This variable is not created by the theme and thus must be manually created by the app developer.
I.e. this code will not work:
var ubuntu = new UbuntuUI();
ubuntu.init();
ubuntu.
Instead, the developer has to declare UI globally (i.e. without "var").
UI = new UbuntuUI();
UI.init();
UI.toolbar(
Related branches
lp:~daker/ubuntu-html5-theme/fix.1222878
- PS Jenkins bot: Approve (continuous-integration)
- Alexandre Abreu: Approve
-
Diff: 318 lines (+93/-93)3 files modified0.1/ambiance/js/core.js (+71/-71)
0.1/ambiance/js/tabs.js (+14/-14)
0.1/ambiance/js/toolbars.js (+8/-8)
Changed in ubuntu-html5-theme: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Adnane Belmadiaf (daker) |
Changed in ubuntu-html5-theme: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix committed into lp:ubuntu-html5-theme at revision 83, scheduled for release in ubuntu-html5-theme, milestone Unknown