You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/09/18 14:44:45 UTC

svn commit: r1387121 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Author: lofwyr
Date: Tue Sep 18 12:44:45 2012
New Revision: 1387121

URL: http://svn.apache.org/viewvc?rev=1387121&view=rev
Log:
TOBAGO-1201: Clicking into an empty cell of an Ajax-enabled tc:sheet leads to JavaScript error

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1387121&r1=1387120&r2=1387121&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Tue Sep 18 12:44:45 2012
@@ -1296,7 +1296,11 @@ var Tobago = {
    */
   clearSelection: function() {
     if (document.selection) {  // IE
-      document.selection.empty();
+      try {
+        document.selection.empty();
+      } catch (error) {
+        // Ignore error: seems to be a browser bug (TOBAGO-1201)
+      }
     } else if (window.getSelection) {  // GECKO
       window.getSelection().removeAllRanges();
     }