Skip to content

Commit

Permalink
update to version 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rniemeyer committed Dec 26, 2014
1 parent 89b847f commit a6198de
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "knockout-kendo",
"version": "0.9.0",
"version": "0.9.1",
"main": "build/knockout-kendo.min.js",
"dependencies": {
"knockout": ">= 2.0"
Expand Down
8 changes: 6 additions & 2 deletions build/knockout-kendo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* knockout-kendo 0.9.0
* knockout-kendo 0.9.1
* Copyright © 2013 Ryan Niemeyer & Telerik
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -84,7 +84,11 @@ ko.kendo.BindingFactory = function() {
//step 6: handle disposal, if there is a destroy method on the widget
if(widget.destroy) {
ko.utils.domNodeDisposal.addDisposeCallback(element, function() {
widget.destroy();
if (typeof kendo.destroy === "function") {
kendo.destroy(widget);
} else {
widget.destroy();
}
});
}
};
Expand Down
4 changes: 2 additions & 2 deletions build/knockout-kendo.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "knockout-kendo",
"version": "0.9.0",
"version": "0.9.1",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "0.x.x",
Expand Down
6 changes: 5 additions & 1 deletion src/knockout-kendo-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ ko.kendo.BindingFactory = function() {
//step 6: handle disposal, if there is a destroy method on the widget
if(widget.destroy) {
ko.utils.domNodeDisposal.addDisposeCallback(element, function() {
kendo.destroy(widget);
if (typeof kendo.destroy === "function") {
kendo.destroy(widget);
} else {
widget.destroy();
}
});
}
};
Expand Down

0 comments on commit a6198de

Please sign in to comment.