mozilla/openbadges — pull request #177 by brianloveswords (2012-05-25 21:00:11+00:00)
Title: Allow strings & arrays for first param of `issue` API .

Addresses issue #167. When a string was being passed in before, it would not immediately fail and instead see it as an array with `"string".length` members which is dumb and wrong. Instead of making it error, I Just made it more lenient so that the first argument can be a string or an array.

To test the change, I modified `fakeissuer` to pass in a string in one case and an array in another. This is not ideal -- we should have some sort of automated, and importantly headless, way of testing `OpenBadges.issue`.

@stenington, @cmcavoy, or @toolness check it out when you get a chance!