Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hachibeedi/rxjs-haxe

RxJS extern for Haxe
https://github.com/hachibeedi/rxjs-haxe

haxe

Last synced: about 1 month ago
JSON representation

RxJS extern for Haxe

Awesome Lists containing this project

README

        

# RxJS-haxe

## How to install

```bash
haxelib git RxJS https://github.com/hachibeeDI/RxJS-haxe.git
```

add your `.hxml`

```
-lib RxJS
```

## Usage

```csharp
import rx.Observable;

// ATTENTION: static methods are all in `ObservableStatic` class.
var ob: Observable = ObservableStatic.fromEvent(null, "keyup");
```

## Notes

Reccomend to use above 3.2 .
Because old version Haxe could not use reserved word (ex: catch, try……).

If you want to call some methods named Haxe's reserved words, add the `_` at the end.

### example

from

```csharp
// Haxe
ob.catch_(function(x) {return null;});
```

to

```javascript
// JavaScript
ob1["catch"](function(x) {return null;});
```

## LICENCE

MIT