← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1222878] Re: toolbar.js requires a global variable "UI"

 

** Changed in: ubuntu-html5-theme
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to ubuntu-html5-theme in
Ubuntu.
https://bugs.launchpad.net/bugs/1222878

Title:
  toolbar.js requires a global variable "UI"

Status in Ubuntu UI SDK for HTML5 Apps:
  Fix Released
Status in “ubuntu-html5-theme” package in Ubuntu:
  Fix Released
Status in “ubuntu-html5-theme” source package in Saucy:
  New

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.toolbar("mytoolbar").toggle();

  Instead, the developer has to declare UI globally (i.e. without
  "var").

  UI = new UbuntuUI();
  UI.init();
  UI.toolbar("mytoolbar").toggle();

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-html5-theme/+bug/1222878/+subscriptions