From 7d3dfff9c7b088c6856e58334ab23644859ebfde Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Thu, 5 Sep 2013 12:09:51 -0400 Subject: [PATCH] [third] Upgrade jquery.autosize.js from 1.13 to 1.17.7 (imported from commit c6a3a911b4481a53000b3f937ea5a3b85a5be8d2) --- .../third/jquery-autosize/jquery.autosize.js | 370 ++++++++++-------- 1 file changed, 210 insertions(+), 160 deletions(-) diff --git a/static/third/jquery-autosize/jquery.autosize.js b/static/third/jquery-autosize/jquery.autosize.js index 3c7f00c6d3..381408b792 100644 --- a/static/third/jquery-autosize/jquery.autosize.js +++ b/static/third/jquery-autosize/jquery.autosize.js @@ -1,44 +1,31 @@ -/** @preserve - Software from "Autosize 1.13", a jQuery plugin for textareas, is - Copyright (c) 2012 Jack Moore and is provided under the following license: - -- - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - -- +/*! + Autosize v1.17.7 - 2013-09-03 + Automatically adjust textarea height based on user input. + (c) 2013 Jack Moore - http://www.jacklmoore.com/autosize + license: http://www.opensource.org/licenses/mit-license.php */ - -// Autosize 1.13 - jQuery plugin for textareas -// (c) 2012 Jack Moore - jacklmoore.com -// license: www.opensource.org/licenses/mit-license.php - -(function ($) { +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else { + // Browser globals: jQuery or jQuery-like library, such as Zepto + factory(window.jQuery || window.$); + } +}(function ($) { var defaults = { className: 'autosizejs', - append: "", - callback: false + append: '', + callback: false, + resizeDelay: 10 }, - hidden = 'hidden', - borderBox = 'border-box', - lineHeight = 'lineHeight', - copy = '