Skip to content

Instantly share code, notes, and snippets.

View lelelic's full-sized avatar

Daniele lelelic

  • Italia
View GitHub Profile
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['knockout', 'jquery', 'selectize'], factory);
} else {
var selConstructor = (typeof selectize != "undefined") ? selectize : $('<select>').selectize().data('selectize').constructor;
factory(ko, $, selConstructor);
}
})(function (ko, $, selectize) {