# HG changeset patch # User Edho Arief # Date 1368294769 -32400 # Node ID cbd5819d7468dad1d705a9d1d3adc0eaefb47051 # Parent e043da06b85f4046582371cb459bda9f53007df5 Completely wtf init for zp.new diff -r e043da06b85f -r cbd5819d7468 app/assets/javascripts/zp.new.js --- 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"))