Browse Source

Merge pull request #640 from davewood/master

add Sortable as dependency for knockout-sortable
pull/645/head
Lebedev Konstantin 9 years ago
parent
commit
7c8523713e
  1. 9
      knockout-sortable.js

9
knockout-sortable.js

@ -2,16 +2,17 @@
"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");
factory(ko); var Sortable = require('./Sortable');
factory(ko, Sortable);
} else { } else {
// 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, window.Sortable);
} }
})(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