Skip to content

Commit

Permalink
Merge pull request #128 from foglerek/master
Browse files Browse the repository at this point in the history
Added getData method. Thanks
  • Loading branch information
nicolasbize committed May 18, 2014
2 parents f5aa48d + 379e969 commit 8f3e5c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions magicsuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f3e5c4

Please sign in to comment.