This file contains hidden or 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
function Observable(observe) { | |
this.map = f => { | |
return new Observable(cb => { | |
this.observe(x => { | |
cb(f(x)); | |
}); | |
}); | |
} | |
this.flatMap = f => { |
This file contains hidden or 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
//Erweiterte JSON, die auch spezielle Objekte parst und zu JSON umwandelt: | |
//Objekte, die sich selbst enthalten | |
//Objekte, die Funktionen enthalten | |
var JSONE = {}; | |
JSONE.to = {}; | |
JSONE.to.removeCycle = function(obj,already = [],lvl = 1,path="PATH#obj"){ | |
if(typeof obj === "object") | |
{ | |
for(var i in already) | |
{ |
This file contains hidden or 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
function jsonWF(obj) | |
{ | |
inject(obj,"funcConvert","self"); | |
var ret = JSON.stringify(obj,funcStringify); | |
cleanProb(obj,"funcConvert"); | |
return ret; | |
} | |
function objWF(str) | |
{ |
This file contains hidden or 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
function AjaxRequest(_file, _readyFunction, _parameters) //A Ajax request wich sends parameter with POST | |
{ | |
var file = _file; | |
var readyFunction = _readyFunction; | |
var parameters = _parameters; | |
this.send = function() | |
{ | |
var xmlhttp; | |
if (window.XMLHttpRequest) |