UNPKG

can-observe

Version:

Like can.Map, but without the .attr method.

12 lines 235 B
"use strict"; module.exports = { observable: function(fn, options) { return function() { var ret = fn.apply(this, arguments); if (ret && typeof ret === "object") { ret = options.observe(ret); } return ret; }; } };