Skip to content

Commit

Permalink
support array being null
Browse files Browse the repository at this point in the history
  • Loading branch information
rniemeyer committed Feb 13, 2014
1 parent dc36a11 commit 40b9029
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/knockout-sortable.js
Expand Up @@ -30,7 +30,7 @@
//prepare the proper options for the template binding
var prepareTemplateOptions = function(valueAccessor, dataName) {
var result = {},
options = unwrap(valueAccessor()),
options = unwrap(valueAccessor()) || {},
actualAfterRender;

//build our options to pass to the template engine
Expand Down
2 changes: 1 addition & 1 deletion build/knockout-sortable.min.js

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

2 changes: 1 addition & 1 deletion src/knockout-sortable.js
Expand Up @@ -29,7 +29,7 @@
//prepare the proper options for the template binding
var prepareTemplateOptions = function(valueAccessor, dataName) {
var result = {},
options = unwrap(valueAccessor()),
options = unwrap(valueAccessor()) || {},
actualAfterRender;

//build our options to pass to the template engine
Expand Down

0 comments on commit 40b9029

Please sign in to comment.