Closed Mattchewone closed 5 years ago
Docs are showing this usage:
var CanMap = require("can-map"); require("can-map-define"); var Person = CanMap.extend({ define: { fullName: function(){ return this.attr("first") + " "+ this.attr("last") } } })
Which should be:
var CanMap = require("can-map"); require("can-map-define"); var Person = CanMap.extend({ define: { fullName: { get () { return this.attr("first") + " "+ this.attr("last"); } } } })
Docs are showing this usage:
Which should be: