src/js/libs/spiritual-gui.js
function(b) {
			var prefix = "spiritual-broadcast:";
			return prefix + (function() {
				b.target = null;
				b.data = (function(d) {
					if (gui.Type.isComplex(d)) {
						if (gui.Type.isFunction(d.stringify)) {
							d = d.stringify();
						} else {
							try {
								JSON.stringify(d); // @TODO: think mcfly - how come not d = JSON.stringify????
							} catch (jsonexception) {
								d = null;
							}
						}
					}
					return d;
				}(b.data));
				return JSON.stringify(b);
			}());
		}
function(b) {
			var prefix = "spiritual-broadcast:";
			return prefix + (function() {
				b.target = null;
				b.data = (function(d) {
					if (gui.Type.isComplex(d)) {
						if (gui.Type.isFunction(d.stringify)) {
							d = d.stringify();
						} else {
							try {
								JSON.stringify(d); // @TODO: think mcfly - how come not d = JSON.stringify????
							} catch (jsonexception) {
								d = null;
							}
						}
					}
					return d;
				}(b.data));
				return JSON.stringify(b);
			}());
		}
function ( b ) { var prefix = "spiritual-broadcast:" ; return prefix + ( function ( ) { b . target = null ; b . data = ( function ( d ) { if ( gui . Type . isComplex ( d ) ) { if ( gui . Type . isFunction ( d . stringify ) ) { d = d . stringify ( ) ; } else { try { JSON . stringify ( d ) ; // @TODO: think mcfly - how come not d = JSON.stringify???? } catch ( jsonexception ) { d = null ; } } } return d ; } ( b . data ) ) ; return JSON . stringify ( b ) ; } ( ) ) ; }
Encode broadcast to be posted xdomain.
@param {gui.Broacast} b
@returns {String}
Encode broadcast to be posted xdomain .