Documentation for can.Deferred reject is not correct #2280

Closed
mickmcgrath13 opened this Issue Feb 19, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@mickmcgrath13
Contributor

mickmcgrath13 commented Feb 19, 2016

on https://canjs.com/docs/can.Deferred.prototype.reject.html

The docs are for .reject, but the example shows .done with a function instead of an object.

def.done(function(reason) { ... });

should be

def.reject({ foo: 'bar' })

@daffl daffl added this to the 2.3.17 milestone Feb 19, 2016

@daffl daffl closed this in #2281 Feb 19, 2016

daffl added a commit that referenced this issue Feb 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment