Return value of goog.events and goog.events.listenOnce is going to
change from ?number to goog.events.ListenableKey. As a first step, we
are switching the return value to a typedef goog.events.Key (currently
just typedef to ?number). This CL switches JS files to use this typedef.

Obviously, the subsequent change will be problematic if this code
make an assumption that the return value is a number and uses the return
value in context where the number is required (e.g. goog.isNumber, using
it as index to an array). While I've tried my best to fix these usages,
I may have missed some of them. Please check that the code will still
remain correct if the return value of goog.events.listen/listenOnce is
changed to an object (goog.events.ListenableKey). Furthermore, if
you know of any other location where the return value is used in a context
that require it to be numbers, please send me a quick email.

This is parts of goog.events refactoring to remove leaking listeners
problem.

R=dnadasi,pallosp
DELTA=9 (0 added, 0 deleted, 9 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6215


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2478 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
fix percentage format for lt before CLDR fix.

R=mscherer
DELTA=3 (2 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6216


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2479 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Fulfill a goog.ui.Dialog TODO to make shift-tabbing from the top of the dialog wrap backward to the last tabbable element in the dialog. This helps improve keyboard accessibility.

Tested on a variety of Closure dialogs in Chrome 25, Firefox 18, Safari 6, IE9.

R=nicksantos
DELTA=72 (67 added, 1 deleted, 4 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6217


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2480 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Ensure that classes inheriting from goog.events.EventTarget
also calls super-class constructor. This is becoming necessary
because we plan to submit a change that will require
initialization in the EventTarget constructor.

This change is made by adding goog.base(this); to the first
line of constructors inheriting directly from
goog.events.EventTarget. Thus, reviewers should ensure that
there is no other call to super-class constructor in the
constructor body.

This is part of goog.events leaking listeners elimination
effort.

R=ajp,dbeam
DELTA=6 (6 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6218


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2481 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Restrict goog.soy.Renderer.render to only render strict Soy templates of kind="html".

Also, strenghten .renderStrict to assume kind="html" if called without explicit kind in opt_kind parameter.

R=gboyer
DELTA=40 (36 added, 0 deleted, 4 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6219


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2482 0b95b8e8-c90f-11de-9d4f-f947ee5921c8