RusticiSoftware / TinCanJS

JavaScript library for the Experience API (Tin Can API)
http://rusticisoftware.github.io/TinCanJS/
Apache License 2.0
207 stars 115 forks source link

Handle slightly incorrect inputs #38

Closed garemoko closed 8 years ago

garemoko commented 11 years ago

The js library should be able to handle:

brianjmiller commented 11 years ago

@garemoko I have a commit pending for the '/' thing that will go into a PR. In the second case I didn't understand the use case, the linked code appears to be during Agent instantiation which should correct for the 'mailto:'. Since we don't have a setter pattern yet it is really up to the user to only specify appropriate values to be stored in the 'mbox' property, which is unfortunate, but I don't know that we want to introduce the whole .get/.set pattern yet (though I've been debating it for a while). Can you explain more what you meant by this? Or does it make sense to close the second part as "won't fix" (until .set/.get pattern emerges)?

garemoko commented 11 years ago

Hi Brian, This was a while ago and I can't explain the relevance of the linked code. I think the use case was if you set or change mailto later on, so yes this is a call for getters and setters I guess!

Andrew

"Brian J. Miller" notifications@github.com wrote:

@garemoko I have a commit pending for the '/' thing that will go into a PR. In the second case I didn't understand the use case, the linked code appears to be during Agent instantiation which should correct for the 'mailto:'. Since we don't have a setter pattern yet it is really up to the user to only specify appropriate values to be stored in the 'mbox' property, which is unfortunate, but I don't know that we want to introduce the whole .get/.set pattern yet (though I've been debating it for a while). Can you explain more what you meant by this? Or does it make sense to close the second part as "won't fix" (until .set/.get pattern emerges)?

— Reply to this email directly or view it on GitHub.

brianjmiller commented 8 years ago

Closing as I think the remaining request of using a get/set model is captured by the roadmap #110.