From 08daa022abbedf47b3865ab48d1bd7f24958415f Mon Sep 17 00:00:00 2001 From: Alexander Wesolowski Date: Fri, 11 Apr 2014 16:15:12 -0700 Subject: [PATCH 1/3] Added getData method for cases where you want to retrieve the most recent data the magicSuggest object was passed. --- src/magicsuggest-1.3.1.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/magicsuggest-1.3.1.js b/src/magicsuggest-1.3.1.js index aa35714..078bf35 100644 --- a/src/magicsuggest-1.3.1.js +++ b/src/magicsuggest-1.3.1.js @@ -623,6 +623,13 @@ } }; + /** + * Get current data + */ + this.getData = function(){ + return cfg.data; + }; + /** * Set up some combo data after it has been rendered * @param data From fedf49d6e9718690d27ea5127ff16ed744c33089 Mon Sep 17 00:00:00 2001 From: Alexander Wesolowski Date: Fri, 11 Apr 2014 16:15:12 -0700 Subject: [PATCH 2/3] Added getData method for cases where you want to retrieve the most recent data the magicSuggest object was passed. --- magicsuggest.js | 7 +++++++ 1 file changed, 7 insertions(+) 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 From 379e969b013b918d1d3607ae312c20d9f7eba16d Mon Sep 17 00:00:00 2001 From: Alexander Wesolowski Date: Sat, 17 May 2014 19:23:49 -0700 Subject: [PATCH 3/3] Merge --- magicsuggest.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/magicsuggest.js b/magicsuggest.js index a2ea25b..76c4e0b 100644 --- a/magicsuggest.js +++ b/magicsuggest.js @@ -502,13 +502,6 @@ return cfg.data; }; - /** - * Get current data - */ - this.getData = function(){ - return cfg.data; - }; - /** * Set up some combo data after it has been rendered * @param data