Don't use ol.size.equals function

To avoid creating an array on each frame (60 times per second).
Merge pull request #1292 from fredj/canvasSize

Don't use ol.size.equals function