Skip to content

Commit

Permalink
Merge pull request #30 from tusharmath/fromDOM-signature
Browse files Browse the repository at this point in the history
fix(fromDOM): dom node should be the first param
  • Loading branch information
tusharmath authored Oct 15, 2016
2 parents e84bd74 + d35e908 commit 86f0dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sources/FromDOM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export class DOMObservable implements IObservable<Event> {

}

export function fromDOM (name: string, element: HTMLElement) {
export function fromDOM (element: HTMLElement, name: string) {
return new DOMObservable(name, element)
}

0 comments on commit 86f0dbc

Please sign in to comment.