A
Andrew Poulos
I have this (the name is fixed by the LMS):
var API_1484_11 = (function() {
// private variables
// private methods
// public methods
return {
get : function() {
if (called via API) {
} else {
}
}
};
})();
and because an older LMS expect a different name I have this
var API = API_1484_11;
The code is effectively identical for both but API has a few subtle
differences that I need to take into account.
Is there a someway to tell if the public methods are called via API or
API_1484_11?
Andrew Poulos
var API_1484_11 = (function() {
// private variables
// private methods
// public methods
return {
get : function() {
if (called via API) {
} else {
}
}
};
})();
and because an older LMS expect a different name I have this
var API = API_1484_11;
The code is effectively identical for both but API has a few subtle
differences that I need to take into account.
Is there a someway to tell if the public methods are called via API or
API_1484_11?
Andrew Poulos