2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-26 14:56:36 +00:00

Expose plugin as an AMD module if AMD loader is present

This commit is contained in:
Tomas Kirda 2013-01-15 11:05:09 -06:00
parent be517ccb33
commit 3b3eb37dce

View File

@ -1,17 +1,27 @@
/**
* Ajax Autocomplete for jQuery, version 1.2
* (c) 2012 Tomas Kirda
* Ajax Autocomplete for jQuery, version 1.2.1
* (c) 2013 Tomas Kirda
*
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
* For details, see the web site: http://www.devbridge.com/projects/autocomplete/jquery/
*
* Last Review: 12/22/2012
* Last Review: 01/15/2013
*/
/*jslint browser: true, white: true, plusplus: true, vars: true */
/*global window: true, document: true, clearInterval: true, setInterval: true, jQuery: true */
/*global define, window, document, jQuery */
(function ($) {
// Expose plugin as an AMD module if AMD loader is present:
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else {
// Browser globals
factory(jQuery);
}
}(function ($) {
'use strict';
var utils = (function () {
@ -572,5 +582,4 @@
}
});
};
}(jQuery));
}));