Forum Moderators: open
after doing some testing, I found that if I change the name of the function to remove1 or anything other than "remove" it works?!?
<script>
function remove() {
// some code here
}
// called via remove();
</script>
<script>
// create a custom namespace object for your app's js code
MyCms = {};
// add remove() to the custom namespace, not the global namespace
MyCms.remove = function() {
// some code here
};
// called via MyCms.remove();
</script>
[edited by: SolutionFactor at 9:02 pm (utc) on Jan 19, 2013]
Only yesterday I had to rename a variable that was supposed to be strictly local because its content was getting changed by a function that should have had no effect on it. And I could swear I'd used the identical construction dozens of times before...