Closure: Fix 1x1 matrix inverse bug

R=brenneman
DELTA=13 (12 added, 1 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6161


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2447 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
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.

Tested:
TAP presubmits for global presubmit queue
http://test/OCL:41250199:BASE:41269811:1358405130847:6908b354
Some tests failed; test failures are believed to be unrelated to this CL

R=cibu
DELTA=6 (0 added, 0 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6162


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2448 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Enable the users of goog.userAgent to differentiate between chrome on Android, iPhone, and iPad.

R=martone
DELTA=156 (140 added, 0 deleted, 16 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6163


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2449 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Allows matchers to be used for function call verifications.

R=vbhasin,nnaze,chrishenry
DELTA=66 (62 added, 0 deleted, 4 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6164


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2450 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Fix for component being disposed before the timeout function is called.

R=nicksantos
DELTA=4 (3 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6168


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2451 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Some cleanups before introducing Listenable handling to goog.events:

* Add goog.events.cleanUp that cleans up goog.events internal
data structure given a ListenableKey.

* Move key number generation to goog.events.ListenableKey.

* Rejigger code in goog.events to refer to
goog.events.listeners_ in as little places as possible
(subsequent logic to unify handling for DOM events and
Listenable will be cleaner, as listen_ will just return a
ListenableKey and listen/listenOnce will handle putting the
object into listeners_ array).

R=nicksantos,gboyer
DELTA=137 (104 added, 16 deleted, 17 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6169


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2452 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
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=nweiz,nicksantos
DELTA=20 (0 added, 2 deleted, 18 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6170


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2453 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Implemented a variant of Math.floor and Math.ceil which tolerate small rounding errors in the passed floating point number.

R=chrishenry
DELTA=63 (62 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6171


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2454 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Add renderStrict that returns the same SanitziedContent as the input.

R=xtof
DELTA=61 (60 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6176


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2455 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Documentation is wrong, 'DefaultConfig' -> 'defaultConfig'.

R=arv
DELTA=4 (0 added, 0 deleted, 4 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6177


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2456 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Set the aria-hidden attribute when setting the visibility of a control.

R=nnaze
DELTA=115 (104 added, 1 deleted, 10 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6178


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2457 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Remove the empty disposeInternal method from goog.net.XhrManager.Event.

R=scr,marja
DELTA=5 (0 added, 5 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6179


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2458 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Reimplement registerDisposable in term of on-dispose callback.

Presumably, unless you're creating and disposing object in hot loop
(if you do that, you should probably fix that anyway),
slight loss in performance should not matter (I'm not even sure this
will actually be slower, given that goog.disposeAll creates an
arguments object).

R=nnaze
DELTA=15 (0 added, 14 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6180


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2459 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Adding goog.string.path#extension method.

R=nnaze
DELTA=41 (41 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6190


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2460 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Closure related changes to support BrowserChannel Startup optimization.

R=dennygursky,mpd
DELTA=36 (35 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6191


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2461 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Add getListener and hasListener to Listenable/EventTarget.

R=nicksantos
DELTA=124 (118 added, 0 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6192


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2462 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Dispose the Cursor object after getAll completes.

R=nicksantos
DELTA=55 (54 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6193


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2463 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Fixes a backwards compatibility issue with the Vec2.scale function

R=martone,nnaze
DELTA=26 (20 added, 1 deleted, 5 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6194


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2464 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Adds goog.soy.Renderer.prototype.renderText.

R=gboyer
DELTA=43 (43 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6195


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2465 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Redirect all usages of goog.dom.a11y to goog.a11y.aria.
The changes are made by applying replace_string transformations, so
please double check the replacements.

R=chrishenry,nnaze,ruilopes
DELTA=829 (276 added, 65 deleted, 488 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6196


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