Skip to content

Commit

Permalink
"success" callback should only be called once
Browse files Browse the repository at this point in the history
  • Loading branch information
fredwu committed Feb 8, 2013
1 parent 811669e commit fc38852
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/ajax-chosen.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ajax-chosen.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/ajax-chosen.coffee
Expand Up @@ -142,7 +142,7 @@ do ($ = jQuery) ->
select.data().chosen.no_results field.val() select.data().chosen.no_results field.val()


# Finally, call the user supplied callback (if it exists) # Finally, call the user supplied callback (if it exists)
success(data) if success? settings.success(data) if settings.success?


# For some reason, the contents of the input field get removed once you # For some reason, the contents of the input field get removed once you
# call trigger above. Often, this can be very annoying (and can make some # call trigger above. Often, this can be very annoying (and can make some
Expand Down

0 comments on commit fc38852

Please sign in to comment.