var NavaidModel = {}; NavaidModel.new = func make(LayerModel, NavaidModel); NavaidModel.init = func { me._view_handle.reset(); var navaids = findNavaidsWithinRange(15); foreach(var n; navaids) me.push(n); me.notifyView(); }