MCPcopy Create free account
hub / github.com/dresende/node-orm2 / extend

Function extend

lib/LazyLoad.js:5–11  ·  view source on GitHub ↗
(Instance, Model, properties)

Source from the content-addressed store, hash-verified

3var LAZY_METHOD_NAMES = ["get", "remove", "set"];
4
5var extend = function (Instance, Model, properties) {
6 for (var k in properties) {
7 if (properties[k].lazyload === true) {
8 addLazyLoadProperty(properties[k].lazyname || k, Instance, Model, k);
9 }
10 }
11};
12
13var conditionAssign = function (instance, model) {
14 var conditions = {};

Callers

nothing calls this directly

Calls 1

addLazyLoadPropertyFunction · 0.85

Tested by

no test coverage detected