Skip to content

Instantly share code, notes, and snippets.

View rexm's full-sized avatar

Rex Morgan rexm

View GitHub Profile
@rexm
rexm / gist:5871642
Last active December 19, 2015 00:49 — forked from rickschott/gist:5870724
var MyBigVM = function (options) {
var $koThis = this;
var map = {
Items: {
create: function(options) {
var item = ko.mapping.fromJS(options.data);
item.blaComputed = ko.computed(function () {
return this.bla1() + " / " + this.bla12();
}, item);
return item;