lib/assets/javascripts/material_raingular/directives/create/linkmodel.coffee in material_raingular-0.6.0.1 vs lib/assets/javascripts/material_raingular/directives/create/linkmodel.coffee in material_raingular-0.6.0.2

- old
+ new

@@ -12,15 +12,15 @@ @$element.bind 'click', @create @CallbackCtrl = @$controller create: ($event) => factory = @_parentFactory()?['create_' + @_modelName().singularize()] || @_factory().create factory @_params(), (data) => - @CallbackCtrl.evaluate(data) if @CallbackCtrl @$timeout => if @_isCollection() @_models().last().push(data) else @_parentModel()[@_modelName()] = data + @CallbackCtrl.evaluate(data) if @CallbackCtrl #Private _modelPieces: -> Helpers.NgModelParse(@$attrs.mrCreate,@$scope) _models: ->