From 5e5b04cdde7614af2a7b3a713a83082a2008032e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 23 Jun 2016 16:57:13 +0800 Subject: [PATCH] Date.js --- Date.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Date.js b/Date.js index a756ec55f9..6f217a5d55 100644 --- a/Date.js +++ b/Date.js @@ -704,8 +704,8 @@ Date.prototype.clearTime = function(clone){ }; // private -// safari setMonth is broken -if(Roo.isSafari){ +// safari setMonth is broken -- check that this is only donw once... +if(Roo.isSafari && typeof(Date.brokenSetMonth) == 'undefined'){ Date.brokenSetMonth = Date.prototype.setMonth; Date.prototype.setMonth = function(num){ if(num <= -1){ -- 2.39.2