Browse Source

add Sortable as dependency for knockout-sortable

pull/640/head
David Schmidt 9 years ago
parent
commit
b65d326d40
  1. 4
      knockout-sortable.js

4
knockout-sortable.js

@ -2,7 +2,7 @@
"use strict"; "use strict";
if (typeof define === "function" && define.amd) { if (typeof define === "function" && define.amd) {
// AMD anonymous module // AMD anonymous module
define(["knockout"], factory); define(["knockout", "./Sortable"], factory);
} else if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { } else if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {
// CommonJS module // CommonJS module
var ko = require("knockout"); var ko = require("knockout");
@ -11,7 +11,7 @@
// No module loader (plain <script> tag) - put directly in global namespace // No module loader (plain <script> tag) - put directly in global namespace
factory(window.ko); factory(window.ko);
} }
})(function (ko) { })(function (ko, Sortable) {
"use strict"; "use strict";
var init = function (element, valueAccessor, allBindings, viewModel, bindingContext, sortableOptions) { var init = function (element, valueAccessor, allBindings, viewModel, bindingContext, sortableOptions) {

Loading…
Cancel
Save