Version 1.0 About
What's new?
This version of Glow contains a number of new features and changes designed to make life easier for developers and end users. We have completely overhauled the Glow website, added a new JavaScript loader and made accessibility improvements to the widgets.
Gloader
Perhaps the most significant change to how you use Glow is the introduction of the gloader. This script allows you to specify the modules you want, and it fetches all the dependencies, including CSS files, for you.
Other advantages include auto-updating to compatible bug fix releases of Glow, loading Glow into private scopes (perfect for page widget authors), and the ability to load other libraries.
Have a look at the getting started page for more details.
WAI-ARIA
Widgets in Glow should now be even more accessible, as we have marked them up with WAI-ARIA attributes. These allow users to identify interactive features, how they relate to each other and their current state.
API changes
We have made a number of changes to the Glow API, some of which are backwardly incompatible with the previous 0.x versions of Glow.
Please see the documentation about migrating from the previous version of Glow for more details.
Documentation
As you may have noticed the bbc.co.uk/glow web site has had a significant overhaul. We have given the documentation in particular a rethink, and we hope that it's now easier to find what you are looking for.
We switched our documentation backend to use the fabulous JSDoc Toolkit, brainchild of our very own Michael Mathews. This enables us to generate exactly the sort of documentation that we need, handling inherited properties, methods and options especially well. Have a look through the API docs for 1.0 and let us know what you think, we understand that there is always for improvement.
Another new feature on the site is the Quick Reference tool. This appears on most pages (look further up this page for an example) and lets you jump straight to the documentation you need. Just start typing the name of any object, property or function in Glow, and it'll suggest a list of matches. Selecting one of these will jump straight to the relevant documentation.
Changelog
1.0.2
1.0.1
- NEW: "Further info" documentation added for various modules
- FIX: NodeList.val("#myForm") now works with forms containing fieldsets
- FIX: Overlay no longer requires options object
- FIX: NodeList.removeClass works with hyphenated class names
- FIX: InfoPanel module dependencies
- FIX: InfoPanel no longer requires context (regression)
- FIX: Avoiding potential collisions with glow.net.loadScript
1.0.0
- NEW: Gloader - Easy way to load a sandboxed instance of Glow
- NEW: glow.widgets.Overlay (and subclasses) Aria attributes added
- NEW: glow.widget.Overlay (and subclasses) keyboard accessibility
- NEW: Assign timeouts to requests in glow.net
- NEW: Specify charsets to glow.net.loadScript requests
- NEW: Ability to cancel glow.net.loadScript requests
- NEW: glow.net now fires custom events
- NEW: glow.widgets.Overlay more control over what gets hidden as overlays appear
- CHANGE: Documentation rewritten
- CHANGE: glow.net interface changes
- CHANGE: NodeList#replaceWith now replaces nodes rather than contents
- CHANGE: NodeList#width & height optimied (33% faster)
- CHANGE: NodeList#css returns CSS calculated values for top/left/bottom/right
- CHANGE: NodeList#offset returns values as {top: val, left: val}
- CHANGE: glow.widgets.Overlay (and subclasses) play nice with overlays bigger than the viewport
- CHANGE: glow.events.addListener will now apply events too all matches in a CSS selector or NodeList
- FIX: NodeList#offset much more reliable
- FIX: glow.dom.get(window).height() corrected for Opera 9.5
- FIX: glow.dom.net / post now considers some non-200 responses successful