diff app/assets/javascripts/zp.new.js @ 217:cbd5819d7468

Completely wtf init for zp.new
author Edho Arief <edho@myconan.net>
date Sun, 12 May 2013 02:52:49 +0900
parents 0e52170b7b6a
children 45bd94c70896
line wrap: on
line diff
--- a/app/assets/javascripts/zp.new.js	Sun May 12 02:48:43 2013 +0900
+++ b/app/assets/javascripts/zp.new.js	Sun May 12 02:52:49 2013 +0900
@@ -8,8 +8,7 @@
       e.preventDefault()
     },
     init: function() {
-      if (this.input() == "undefined") { return }
-      console.log("wheee~")
+      if (this.input().length === 0) { return }
       $(document).on('click', "#reset_paste", $.proxy(this.clear, this))
       this.input().autosize({ className: 'mirrored_text row-fluid', append: "\n"});
       $.autosize_box_fix($(".mirrored_text"))