Fix a typo (thanks @andreys!).
Updating to HTML5 for data-attributes.
Merge pull request #27 from tonycoco/patch-1

Updating to HTML5 for data-attributes.
Fix TypeaheadSource not considering excludeids

Summary:
Previously, TypeaheadSource doesn't consider the excludeids
that are updated after the datasource has been created. It should also
check for it every time the match results is called so that it supports adding/removing exclude ids on lookup time.

Test Plan:
Try to insert an exclude id via javascript after datasource
has been initialized. Type in the name, make sure the name is now not included in the typeahead

Reviewers: linjeffrey, jeffmo, epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D3108
Reload less aggressively in URI.go

Summary:
Firefox (and maybe also other browsers) does ignore-the-cache reload (Ctrl+F5) on `window.location.reload`.
Replace this by assignment to `window.location`.
We can't use `window.location = window.location` because it does nothing if there is a hash.

Test Plan: Flagged a revision, checked the files transfered.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3135
Fix an issue where the the internal state of a Typeahead was not properly cleared after a token was selected

Summary:
JX.Typeahead keeps a copy of the input state so we can discard keypresses which don't change the input, but we were manually clearing the input rather than calling clear() properly. Additionally, we don't clear the internal state in clear().

Instead, call clear() from JX.Tokenizer, and reset the internal state in clear().

A specific way to trigger this bug is type "z" in a Tokenizer (assuming it matches 2+ tokens), get a match, hit return to select it, and then type "z" again. The incorrect behavior (before this patch) was for the typeahead suggestion list to remain hidden until you typed another character. The correct behavior (after this patch) is for the suggestion list to reopen.

Test Plan: Typed "z", selected a token, typed "z", got a suggestion list.

Reviewers: hendri

Reviewed By: hendri

CC: jeffmo, linjeffrey, aran

Differential Revision: https://secure.phabricator.com/D3159
Add JX.TypeaheadStaticSource

Summary: Add a completely static source to compliment the existing Ajax sources (preloaded / ondemand), useful for small data or examples.

Test Plan: Built a simple example using this source, see D3143.

Reviewers: hendri

Reviewed By: hendri

CC: jeffmo, linjeffrey, aran

Differential Revision: https://secure.phabricator.com/D3160
Add a getResult(id) method to TypeaheadSource

Summary:
In some places, like the `choose` event of JX.Typeahead and the `getTokens()` method of JX.Tokenizer, we return result IDs and some piece of derived data (the node in the former case, the display string in the latter case). In most cases, these are sufficient, if somewhat awkward and possibly poor architectural decisions.

However, sometimes we need the raw result with any additional data it may carry (see D3143). Add a method to do a lookup by ID.

Test Plan: Built an example using this, see D3143.

Reviewers: hendri

Reviewed By: hendri

CC: jeffmo, linjeffrey, aran

Differential Revision: https://secure.phabricator.com/D3161
Add an example of complex tokenizer behavior

Summary: See D3143. Depends on D3159, D3160, D3161.

Test Plan: Used example.

Reviewers: hendri

Reviewed By: hendri

CC: jeffmo, linjeffrey, aran

Differential Revision: https://secure.phabricator.com/D3162
Rebuild premade Javelin packages

Summary:
We include some premade Javelin packages that haven't been rebuild recently. Rebuild them.

This diff was created by running `scripts/rebuild-packages.php`.

Test Plan: Scripted rebuild. Examples work.

Reviewers: hendri

Reviewed By: hendri

CC: jeffmo, linjeffrey, aran

Differential Revision: https://secure.phabricator.com/D3163
Fix JavaScript syntax error
Merge remote-tracking branch 'upstream/master'