How to clone ImageData?
<p>This is working, but I feel this code is lengthy.
I'm looking for better idea.</p>

<pre><code>var clone = function(imageData) {
  var canvas, context;
  canvas = document.createElement('canvas');
  canvas.width = imageData.width;
  canvas.height = imageData.height;
  context = canvas.getContext('2d');
  context.putImageData(imageData, 0, 0);
  return context.getImageData(0, 0, imageData.width, imageData.height);
};
</code></pre>
