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

Commit cffde91

Browse files
Initial move to 4.0
1 parent ccc9981 commit cffde91

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2494
-421
lines changed

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rxjs-dom",
3-
"version": "3.0.2",
4-
"main": "rx.dom.js",
3+
"version": "4.0.0",
4+
"main": "dist/rx.dom.js",
55
"dependencies": {
66
"rxjs": "*"
77
},

dist/rx.dom.compat.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
Scheduler = Rx.Scheduler,
4545
defaultNow = (function () { return !!Date.now ? Date.now : function () { return +new Date; }; }()),
4646
dom = Rx.DOM = {},
47-
hasOwnProperty = {}.hasOwnProperty;
47+
hasOwnProperty = {}.hasOwnProperty,
48+
noop = Rx.helpers.noop;
4849

4950
function fixEvent(event) {
5051
var stopPropagation = function () {
@@ -727,7 +728,7 @@ if (BrowserMutationObserver) {
727728

728729

729730
if ('navigator' in root && 'geolocation' in root.navigator) {
730-
Rx.DOM.Geolocation = {
731+
Rx.DOM.geolocation = {
731732

732733
/**
733734
* Obtains the geographic position, in terms of latitude and longitude coordinates, of the device.

dist/rx.dom.compat.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.dom.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
Scheduler = Rx.Scheduler,
4545
defaultNow = (function () { return !!Date.now ? Date.now : function () { return +new Date; }; }()),
4646
dom = Rx.DOM = {},
47-
hasOwnProperty = {}.hasOwnProperty;
47+
hasOwnProperty = {}.hasOwnProperty,
48+
noop = Rx.helpers.noop;
4849

4950
function createListener (element, name, handler) {
5051
if (element.addEventListener) {
@@ -638,7 +639,7 @@ if (BrowserMutationObserver) {
638639

639640

640641
if ('navigator' in root && 'geolocation' in root.navigator) {
641-
Rx.DOM.Geolocation = {
642+
Rx.DOM.geolocation = {
642643

643644
/**
644645
* Obtains the geographic position, in terms of latitude and longitude coordinates, of the device.

dist/rx.dom.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/operators/blur.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
### `Rx.DOM.blur(element, [selector])`
2+
[Ⓢ](https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/src/events.js "View in source")
3+
4+
Creates an observable sequence by adding an event listener to the matching DOMElement or DOMNodeList for the `blur` event.
5+
6+
#### Arguments
7+
1. `element` *(`Any`)*: The DOMElement, DOMNodeList to attach a listener.
8+
2. `[selector]` *(`Function`)*: A selector which takes the arguments from the event handler to produce a single item to yield on next.
9+
10+
#### Returns
11+
*(`Observable`)*: An observable sequence of events from the specified element and the `blur` event.
12+
13+
#### Example
14+
15+
```js
16+
var input = document.getElementById('input');
17+
18+
var source = Rx.DOM.blur(input);
19+
20+
var subscription = source.subscribe(
21+
function (x) {
22+
console.log('Next!');
23+
},
24+
function (err) {
25+
console.log('Error: ' + err);
26+
},
27+
function () {
28+
console.log('Completed');
29+
});
30+
```
31+
32+
### Location
33+
34+
File:
35+
- [`/src/events.js`](https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/src/events.js)
36+
37+
Dist:
38+
- [`rx.dom.js`](https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/dist/rx.dom.js) | - [`rx.dom.compat.js`](https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/dist/rx.dom.compat.js)
39+
40+
Prerequisites:
41+
- If using `rx.js`
42+
- [`rx.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.js) | [`rx.compat.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.compat.js)
43+
- [`rx.binding.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.binding.js)
44+
- [`rx.lite.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/rx.lite.js) | [`rx.lite.compat.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/rx.lite.compat.js)
45+
46+
NPM Packages:
47+
- [`rx-dom`](https://preview.npmjs.com/package/rx-dom)
48+
49+
NuGet Packages:
50+
- [`RxJS-Bridges-HTML`](http://www.nuget.org/packages/RxJS-Bridges-HTML/)
51+
52+
Unit Tests:
53+
- [`/tests/events.js`](https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/tests/events.js)

0 commit comments

Comments
 (0)