Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22484: LJSUP-13051: Draft is not saved in IE8

Committer: anazarov
LJSUP-13051: Draft is not saved in IE8
U   trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js	2012-07-23 10:20:29 UTC (rev 22483)
+++ trunk/htdocs/js/basic.js	2012-07-23 10:48:43 UTC (rev 22484)
@@ -309,10 +309,9 @@
 				lock = true;
 
 				if (preserve) {
-					f.apply(caller, queue[0]);
-					queue.shift();
+					f.apply(caller, queue.shift());
 				} else {
-					f.apply(caller, queue[-1]);
+					f.apply(caller, queue.pop());
 					queue = [];
 				}
 

Tags: anazarov, js, livejournal, nfokz
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