Update fireListener to unlisten to a callOnce listener before
calling a handler.  If the listener dispatches the same event,
it can cause an infinite loop.

R=nicksantos
DELTA=18  (16 added, 1 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4684


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

Add a new API that allows registration of "late" callbacks - normal initialization callbacks are registered as early module callbacks, these callbacks map to normal module callbacks.

I ran the idea by Steve Saviano and he said it was fine (although he's worried about eventually winding up with "addEvenLaterCallback") but he said I should ask you (Nick) if you were okay with it.

R=nicksantos
DELTA=21  (21 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4685


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

Strip comments before scanning for require/provide statements.

Fixes issue 100.

R=chrishenry
DELTA=58  (55 added, 2 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4686


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

Automated g4 rollback

*** Reason for rollback ***

Breaking an analytics test.

*** Original change description ***

Update fireListener to unlisten to a callOnce listener before
calling a handler.  If the listener dispatches the same event,
it can cause an infinite loop.


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4687


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

Fix one-sided handshakes, which were broken.  The ONE_SIDED_HANDSHAKE config param is now true for both participating frames, and asymetric behavior controlled by the role.

R=nicksantos
DELTA=28  (12 added, 7 deleted, 9 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4688


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

Adds a resize event to the closure text area widget.  This is needed for the new chat UI to update some scrolling information based on when the text widget resizes itself.

R=gboyer
DELTA=27  (26 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4689


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

Automated g4 rollback

*** Reason for rollback ***

Timing issue is fixed

*** Original change description ***

Automated g4 rollback

*** Reason for rollback ***

Broke some tests, there seems to be an unaddressed timing issue somewhere.  Rolling back pending investigation.

*** Original change description ***

Have the XPC cross page channel delay the performance of the connect() operation until after any peer iframe created from

... description truncated by g4 rollback ...

R=nicksantos
DELTA=91  (57 added, 23 deleted, 11 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4690


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

Reposition the goog.ui.ComboBox menu whenever it might be shown.

This fixes a bug where, if the menu is anchored above the input box
(such as when the input box is at the bottom of the page),
subsequent filtering of the menu would cause the bottom of the menu
to grow upwards instead of the top of the menu to grow downwards.

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4691


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

Fix to goog.net.ImageLoader: If you add 1 image, then call start(), then add 1 more image immediately and call start() again, the 1st image previously would be loaded a 2nd time.  This would result in two LOAD events for that image.

This CL fixes that by switching around the images_ member variable: images_ now just contains images that haven't been started yet.  Event listener clean-up is now done as each image finishes loading (or erroring).

R=nnaze
DELTA=287  (224 added, 39 deleted, 24 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4692


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

Implemented goog.date.Interval.prototype.isZero

R=ponny
DELTA=20  (20 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4693


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

Make goog.ui.AutoComplete.Renderer uses goog.positioning
to simplify the logic and provide a better behavior on
viewport overflow (on the x-axis only, since there is
legitimate reason why projects may want the autocompleter
to be fixed on y-axis -- eg, embedded flash content on
one side).

This should only affect edge cases where parts of the
autocompleter strays out of the viewport.

R=nicksantos
DELTA=83  (44 added, 17 deleted, 22 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4695


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

Implementation of ObservableSet, a set of observables where we can add
or remove observers from all of them.

R=nnaze
DELTA=431  (430 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4697


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

Change on 2012-05-04 13:23:48-07:00 by chrishenry

	Implementation of ObservableSet, a set of observables where we can add
	or remove observers from all of them.

	R=nnaze
	DELTA=431  (430 added, 0 deleted, 1 changed)

Change on 2012-05-04 16:41:19-07:00 by chrishenry

	Change createFromMap API to specifically treats array
	specially. Previous implementation already did this even
	though the API said it only expects string parameter value
	(except that my recent change fix the bug that makes this
	behavior works).

	The more I see the new API, the more I dislike it, but oh well
	-- goog.uri.utils.QueryValue also define similar special
	treatment...

	R=gboyer,brenneman
	DELTA=28  (20 added, 0 deleted, 8 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4696


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

1. Bug fix: make goog.i18n.bidi.isRtlLanguage() case-insensitive, which it is supposed to be per the BCP 47 spec.
2. Document why goog.i18n.bidi.IS_RTL does not follow the same rules as goog.i18n.bidi.isRtlLanguage().

R=gboyer
DELTA=24  (12 added, 2 deleted, 10 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4701


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

Updates a few stray closure ui renderers to use goog.dom.classes.has() instead
of classes.indexOf to check for the existence of a class name.

R=nicksantos
DELTA=68  (12 added, 2 deleted, 54 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4702


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

ensures that the warnings generation rule collects all warnings

R=chrishenry
DELTA=142  (3 added, 0 deleted, 139 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4703


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

Temporarily disable the requirement that native transports must send an ACK before marking themselves connected.  Add a timeout before calling the connection callback to cover for the message loss bug the requirement fixed.  This just to get Analytics working again, it isn't a solid solution.  They have their outer frame reconnect to their inner frame, which won't work with the current protocol.  Real solution will be assigning each native transport a random id, which it sends to its counterpart in a SETUP message.  When a transport sees a SETUP message from a transport it doesn't recognize, it will send its own SETUP message again, recreating the full handshake.  Added new crosspagechannel tests to test reconnection cases.

R=nicksantos
DELTA=164  (145 added, 1 deleted, 18 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4704


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

fix some typing issues

R=chrishenry
DELTA=25  (4 added, 13 deleted, 8 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4705


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

fix some type warnings

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4726


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

Change on 2012-05-08 08:32:32-07:00 by nicksantos

	fix some type warnings

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

Change on 2012-05-08 10:53:41-07:00 by divye

	Remove extra code to work around a chrome bug since the underlying issue
	has been fixed.

	Tested: cookies_test.html still passes.

	R=arv
	DELTA=16  (0 added, 15 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4718


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