Permalink
Browse files

"success" callback should only be called once

  • Loading branch information...
1 parent 811669e commit fc38852460cbc0edcabddeddf23867e34519603b @fredwu fredwu committed Feb 8, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/ajax-chosen.js
  2. +1 −1 lib/ajax-chosen.min.js
  3. +1 −1 src/ajax-chosen.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -142,7 +142,7 @@ do ($ = jQuery) ->
select.data().chosen.no_results field.val()
# 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
# call trigger above. Often, this can be very annoying (and can make some

0 comments on commit fc38852

Please sign in to comment.