Not sure why I got this error :
Object doesn't support property or method 'trimLeft' when browse with IE
My code is :
var checkTrimLeadingWhiteSpace = function(str) {
if (str && ignoreLeadingWS) {
return str.trimLeft();
}
return str;
};