Skip to content

Instantly share code, notes, and snippets.

@alvieirajr
Last active July 15, 2016 16:20
Show Gist options
  • Save alvieirajr/a61e52b6fd1e94193585e105d714895f to your computer and use it in GitHub Desktop.
Save alvieirajr/a61e52b6fd1e94193585e105d714895f to your computer and use it in GitHub Desktop.
"use strict";
var property = { baseValue: 5 }; // Parts of model domain (domain properties).
var someBehavior = function (params) { // implementation domain.
return this.baseValue + params;
};
var result = someBehavior.call(property, 4);
console.log(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment