blackberry/bbUI.js — pull request #771 by litchi (2013-03-28 11:34:59+00:00)
Title: Add onbackclick support for title bar to hook custom logic to the titlebar back button

This push request is created to add a custom onbackclick attribute for titlebar,

The logic is

- If there's no onbackclick attribute defined for the titlebar, then bb.pushScreen() will be invoked, that's the same as former behavior.

- If there's any onbackclick attribute defined for the titlebar, then the code defined in onbackclick will be invoked, like onactionclick.

This request add another possibility to control the page flow, using cancel button in the titlebar.