IE-7: expected identifier, string or number: no trailing comma

35 Views Asked by At

I am getting the expected identifier, string or number error in IE-7.

There is no trailing comma in the code

// Merge defaults with options 
options = (options) ? options : {};
options = copyProperties({logging:true},options);
var appId = options.appId || options.apiKey;
if (/number|string/.test(typeof appId)) {
Runtime.setClientID(appId.toString());
}

The error occour after the 2nd line

options = copyProperties({logging:true},options);
0

There are 0 best solutions below