spacevillain (spacevillain) wrote in changelog,
spacevillain
spacevillain
changelog

[livejournal] r23277: LJSUP-14206: es5-shim

Committer: atyurin
LJSUP-14206: es5-shim
U   trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js	2012-11-09 09:16:32 UTC (rev 23276)
+++ trunk/htdocs/js/basic.js	2012-11-09 11:16:39 UTC (rev 23277)
@@ -1164,8 +1164,9 @@
 	}
 });
 
-// for back compatiblity with legacy code 
-if (jQuery.browser.msie && Number(jQuery.browser.version) < 9) {
+// for back compatiblity with legacy code
+// we can't rely on version === 9 because of browser/document mode
+if (jQuery.browser.msie) {
 	Function.prototype.bind = function(that) { // .length is 1
 		var target = this,
 			slice = [].slice;

Tags: atyurin, js, livejournal, spacevillain
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments