This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Class: Buffer | |
* methods: append | |
* | |
* Constructor: takes a function which will be the task handler to be called | |
* | |
* .append appends a task to the buffer. Buffer will only call a task when the | |
* previous task has finished | |
*/ | |
var Buffer = function(handler) { | |
var tasks = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const todo = (state, action)=> ({...state}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Observable } from 'rxjs/Observable'; | |
import { environment } from '../../environments/environment'; | |
declare module 'rxjs/Observable' { | |
interface Observable<T> { | |
debug: (...any) => Observable<T>; | |
} | |
} | |
Observable.prototype.debug = (message: string) => { |