Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 584e899

Browse files
Fixing Travis build
1 parent b49bf67 commit 584e899

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: node_js
22
node_js:
33
- "0.11"
4-
- "0.10"
5-
- "0.8"
4+
- "0.10"

readme.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,42 +18,42 @@ There are a number of ways to get started with the HTML DOM Bindings for RxJS.
1818
### Download the Source
1919

2020
To download the source of the HTML DOM Bindings for the Reactive Extensions for JavaScript, type in the following:
21-
22-
git clone https://github.com/Reactive-Extensions/rxjs-dom.git
23-
cd ./rxjs-dom
24-
21+
```bash
22+
git clone https://github.com/Reactive-Extensions/rxjs-dom.git
23+
cd ./rxjs-dom
24+
```
2525
### Installing with [NPM](https://npmjs.org/)
26-
27-
npm install rx-dom
28-
26+
```bash
27+
npm install rx-dom
28+
```
2929
### Installing with [Bower](http://bower.io/)
30-
31-
bower install rxjs-dom
32-
30+
```bash
31+
bower install rxjs-dom
32+
```
3333
### Installing with [Jam](http://jamjs.org/)
34-
35-
jam install rx-dom
36-
34+
```bash
35+
jam install rx-dom
36+
```
3737
### Installing with [NuGet](http://nuget.org)
38-
39-
PM> Install-Package RxJS-Bridges-HTML
40-
38+
```bash
39+
PM> Install-Package RxJS-Bridges-HTML
40+
```
4141
### Getting Started with the HTML DOM Bindings
4242

4343
Let's walk through a simple yet powerful example of the Reactive Extensions for JavaScript Bindings for HTML, autocomplete. In this example, we will take user input from a textbox and trim and throttle the input so that we're not overloading the server with requests for suggestions.
4444

4545
We'll start out with a basic skeleton for our application with script references to RxJS Lite based methods, and the RxJS Bindings for HTML DOM, along with a textbox for input and a list for our results.
46-
47-
<script type="text/javascript" src="rx.lite.js"></script>
48-
<script type="text/javascript" src="rx.dom.js"><script>
49-
<script type="text/javascript">
50-
51-
</script>
52-
...
53-
<input id="textInput" type="text"></input>
54-
<ul id="results"></ul>
55-
...
56-
46+
```html
47+
<script type="text/javascript" src="rx.lite.js"></script>
48+
<script type="text/javascript" src="rx.dom.js"><script>
49+
<script type="text/javascript">
50+
51+
</script>
52+
...
53+
<input id="textInput" type="text"></input>
54+
<ul id="results"></ul>
55+
...
56+
```
5757
The goal here is to take the input from our textbox and throttle it in a way that it doesn't overload the service with requests. To do that, we'll get the reference to the textInput using the document.getElementById moethod, then bind to the 'keyup' event using the `Rx.DOM.fromEvent` specialization shortcut for keyups called `Rx.DOM.keyup` which then takes the DOM element event handler and transforms it into an RxJS Observable.
5858
```js
5959
var textInput = document.getElementById('textInput');

0 commit comments

Comments
 (0)