From df78f6f0111917de6361b272fa44a69451f4518f Mon Sep 17 00:00:00 2001 From: Per Date: Wed, 17 Sep 2014 01:47:58 +0200 Subject: [PATCH] Strip empty options Added an option to strip empty select --- _src/selectordie.js | 19 ++++++++++++++----- _src/selectordie.min.js | 6 +++--- bower.json | 2 +- select-or-die.jquery.json | 2 +- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/_src/selectordie.js b/_src/selectordie.js index 3ed1242..590c333 100644 --- a/_src/selectordie.js +++ b/_src/selectordie.js @@ -1,8 +1,8 @@ /* =========================================================== * * Name: selectordie.js - * Updated: 2014-07-08 - * Version: 0.1.4 + * Updated: 2014-09-17 + * Version: 0.1.6 * Created by: Per V @ Vst.mn * What?: The Select or Die JS * @@ -25,6 +25,7 @@ placeholder: null, // String - "" by default - Adds a placeholder that will be shown before a selection has been made prefix: null, // String - "" by default - Adds a prefix that always will be shown before the selected value cycle: false, // Boolean - false by default - Should keyboard cycle through options or not? + stripEmpty: false, // Boolean - false by default - Should empty