From f1a69722817072bf71802c78a34ae74b2c4c5ecc Mon Sep 17 00:00:00 2001
From: Jacob Thornton <jacobthornton@gmail.com>
Date: Fri, 19 Aug 2011 20:37:12 -0700
Subject: [PATCH] fix drag knob in firefox #7

---
 docs/assets/js/application.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js
index 82cf307e91..0de6ca96f6 100644
--- a/docs/assets/js/application.js
+++ b/docs/assets/js/application.js
@@ -92,10 +92,9 @@ $(document).ready(function(){
 
   // Copy code blocks in docs
   $(".copy-code").focus(function() {
-    $(this).select();
-  });
-  $(".copy-code").mouseup(function(e) {
-    e.preventDefault();
+    var el = this;
+    // push select to event loop for chrome :{o
+    setTimeout(function () { $(el).select(); }, 1);
   });
 
 
-- 
GitLab