Currently, when you pass an ID to Marty.Store#fetch which is not null or undefined, but "falsy" according to JavaScript's logic (such as 0 or the empty string), an exception with the message must specify an id is thrown. This pull request fixes that and makes sure to only throw an exception if either undefined or null is passed, but not for any other value.
Currently, when you pass an ID to
Marty.Store#fetch
which is notnull
orundefined
, but "falsy" according to JavaScript's logic (such as 0 or the empty string), an exception with the messagemust specify an id
is thrown. This pull request fixes that and makes sure to only throw an exception if eitherundefined
ornull
is passed, but not for any other value.