diff --git a/magicsuggest.js b/magicsuggest.js index 0448d32..76c4e0b 100644 --- a/magicsuggest.js +++ b/magicsuggest.js @@ -495,6 +495,13 @@ this.input.attr('placeholder', (cfg.selectionPosition === 'inner' && this.getValue().length > 0) ? '' : cfg.placeholder); }; + /** + * Get current data + */ + this.getData = function(){ + return cfg.data; + }; + /** * Set up some combo data after it has been rendered * @param data