client/lanes/models/Collection.coffee in lanes-0.6.1 vs client/lanes/models/Collection.coffee in lanes-0.7.0

- old
+ new

@@ -11,10 +11,13 @@ found pick: (keys...) -> _.map(@models, _.partialRight(_.pick, keys...)) + unSaved: -> + @filter (pymnt) -> pymnt.isNew() + sum: -> args = _.toArray(arguments) args.unshift(this.models) return _.sum.apply(_, args) @@ -33,10 +36,10 @@ ) return this ) clone: -> - new @constructor( @invoke( 'clone' ), @options ) + new @constructor( @each( 'clone' ), @options ) serialize: (options = {depth: 1}) -> depth = options.depth depth += 1 options = _.extend({}, options, {depth})