Created
July 17, 2013 11:43
-
-
Save dincho/6019770 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -400,6 +400,9 @@ | |
| return this.each(function () { | |
| if (typeof options == 'string') { | |
| + //restore options state before public method calls | |
| + tagManagerOptions = obj.data('tagManager-options'); | |
| + | |
| switch (options) { | |
| case "empty": | |
| empty(); | |
| @@ -531,6 +534,9 @@ | |
| } else if (tagManagerOptions.hiddenTagListId != null) { | |
| prefill($('#' + tagManagerOptions.hiddenTagListId).val().split(baseDelimiter)); | |
| } | |
| + | |
| + //store options state for further public method calls | |
| + obj.data('tagManager-options', tagManagerOptions); | |
| }); | |
| } | |
| })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much! That's exactly what I needed.