2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-09 23:01:00 +00:00

amd define as named module

This commit is contained in:
disfated 2015-04-06 18:43:04 +05:00
parent 08c284c00d
commit 820d343cb2

View File

@ -14,7 +14,7 @@
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
define('jquery.autocomplete', ['jquery'], factory);
} else if (typeof exports === 'object' && typeof require === 'function') {
// Browserify
factory(require('jquery'));