diff --git a/src/core/PaperScope.js b/src/core/PaperScope.js index 28cd219d..1d066707 100644 --- a/src/core/PaperScope.js +++ b/src/core/PaperScope.js @@ -95,9 +95,7 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{ /^(node|trident)$/.test(n) ? rv : v1; agent.version = v; agent.versionNumber = parseFloat(v); - n = n === 'trident' ? 'msie' - : n === 'jsdom' ? 'node' - : n; + n = { trident: 'msie', jsdom: 'node' }[n] || n; agent.name = n; agent[n] = true; }