Allow scroll to null and undefined
@@ -1524,6 +1524,8 @@ var Domado = (function() {
* @param {number} y y-coord of a pixel in the element's frame of reference.
*/
function tameScrollTo(element, x, y) {
+ x = x || 0;
+ y = y || 0;
if (x !== +x || y !== +y || x < 0 || y < 0) {
throw new Error('Cannot scroll to ' + x + ':' + typeof x + ','
+ y + ' : ' + typeof y);
