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

getLangDictionary does not work for "und" #103

Closed garemoko closed 9 years ago

garemoko commented 9 years ago

See: https://github.com/RusticiSoftware/TinCanJS/blob/2a204f300343a9d3cddfcfcc91862f54f138d0a7/src/Utils.js#L221

Should instead be:

if (typeof langDict["und"] !== "undefined") {
    return langDict["und"];
}

Related issue: getLangDictionaryValue

garemoko commented 9 years ago

My mistake.