Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 721 Bytes

README.md

File metadata and controls

52 lines (32 loc) · 721 Bytes

RxJS-haxe

How to install

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

add your .hxml

-lib RxJS

Usage

import rx.Observable;

// ATTENTION: static methods are all in `ObservableStatic` class.
var ob: Observable<js.html.Event> = 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

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

to

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

LICENCE

MIT