This is a migrated thread and some comments may be shown as answers.

Kendo-Angular and scheduler - Cannot read property '$destroy' of undefined

1 Answer 148 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 24 Jun 2014, 07:38 PM
I took scheduler options from here http://kendo-labs.github.io/angular-kendo/#/Scheduler (copy-paste)
When try to move event to some other day it throws the following error:

TypeError: Cannot read property '$destroy' of undefined 

Going through the source code  see it calls destroy for the scope that is undefined.

function destroyScope(scope, el) {
    scope.$destroy();  // scope is null here
    if (el) {
      $(el)
        .removeData("$scope")
        .removeData("$isolateScope")
        .removeData("$isolateScopeNoTemplate")
        .removeClass("ng-scope");
    }
  }

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 25 Jun 2014, 09:12 AM
Hi Peter,

I can't see the problem on this page: http://trykendoui.telerik.com/@mishoo/ujuD

Perhaps you're not using the latest version of angular-kendo.js?

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Integration with other JS libraries
Asked by
Peter
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Share this question
or