diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index df4daf4a..ead636f8 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -271,10 +271,10 @@ Base.exports.PaperScript = (function() { base64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; value = (Math.abs(value) << 1) + (value < 0 ? 1 : 0); while (value || !res) { - var next = value & ((1 << 5) - 1); + var next = value & (32 - 1); value >>= 5; if (value) - next |= (1 << 5); + next |= 32; res += base64[next]; } return res; diff --git a/src/node.js b/src/node.js index 8a6de8a8..77c6f635 100644 --- a/src/node.js +++ b/src/node.js @@ -74,13 +74,13 @@ DOMParser.prototype.parseFromString = function(string, contenType) { return div.firstChild; }; -var sourceMaps = {}; -var sourceMapSupport = { - retrieveSourceMap: function(source) { - var map = sourceMaps[source]; - return map ? { url: source, map: map } : null; - } -}; +var sourceMaps = {}, + sourceMapSupport = { + retrieveSourceMap: function(source) { + var map = sourceMaps[source]; + return map ? { url: source, map: map } : null; + } + }; // Register the .pjs extension for automatic compilation as PaperScript require.extensions['.pjs'] = function(module, filename) {