Skip to content

Commit

Permalink
v1.0 - breaking change to require paths, which requires jQuery UI >=1…
Browse files Browse the repository at this point in the history
….12, if consuming via AMD/CommonJS (or config changes to normalize paths)
  • Loading branch information
rniemeyer committed Nov 4, 2016
1 parent 8de0027 commit 0da63af
Show file tree
Hide file tree
Showing 5 changed files with 15,266 additions and 11,473 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ This library also includes a `draggable` binding that you can place on single it

* Knockout 2.0+
* jQuery - no specific version identified yet as minimum
* jQuery UI - no specific version identfied yet as minimum
* jQuery UI - If needing AMD/CommonJS support, then it requires >=1.12 (or ensuring that paths are mapped via config properly - it looks for `jquery-ui/ui/widgets/sortable` and `jquery-ui/ui/widgets/draggable`)

**Touch Support** - for touch support take a look at: http://touchpunch.furf.com/


**Build:** This project uses [grunt](http://gruntjs.com/) for building/minifying.

**Examples** The `examples` directory contains samples that include a simple sortable list, connected lists, and a seating chart that takes advantage of many of the additional options.
Expand Down
8 changes: 4 additions & 4 deletions build/knockout-sortable.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// knockout-sortable 0.15.0 | (c) 2016 Ryan Niemeyer | http://www.opensource.org/licenses/mit-license
// knockout-sortable 1.0.0 | (c) 2016 Ryan Niemeyer | http://www.opensource.org/licenses/mit-license
;(function(factory) {
if (typeof define === "function" && define.amd) {
// AMD anonymous module
define(["knockout", "jquery", "jquery-ui/sortable", "jquery-ui/draggable"], factory);
define(["knockout", "jquery", "jquery-ui/ui/widgets/sortable", "jquery-ui/ui/widgets/draggable"], factory);
} else if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {
// CommonJS module
var ko = require("knockout"),
jQuery = require("jquery");
require("jquery-ui/sortable");
require("jquery-ui/draggable");
require("jquery-ui/ui/widgets/sortable");
require("jquery-ui/ui/widgets/draggable");
factory(ko, jQuery);
} else {
// No module loader (plain <script> tag) - put directly in global namespace
Expand Down
4 changes: 2 additions & 2 deletions build/knockout-sortable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0da63af

Please sign in to comment.