Skip to content

Commit b562d1a

Browse files
committed
Merge pull request select2#692 from 4sh/master
Allow to pass a callback as ajax.url configuration parameter
2 parents b4f6462 + a770ade commit b562d1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ the specific language governing permissions and limitations under the Apache Lic
316316
if( null !== handler) { handler.abort(); }
317317

318318
handler = transport.call(null, {
319-
url: options.url,
319+
url: ((typeof options.url === 'function')?options.url():options.url),
320320
dataType: options.dataType,
321321
data: data,
322322
type: type,

0 commit comments

Comments
 (0)