Skip to content

Commit a770ade

Browse files
committed
Allow to pass a callback as ajax.url
1 parent b4f6462 commit a770ade

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)