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

AngularJS / undefined is not a function

2 Answers 141 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 11 Aug 2014, 02:45 PM
http://dojo.telerik.com/iLEQ/5

Here, the kendoDraggable method hint is throwing error. This works if I don't use the AngulerJS/Controller.
kendoDraggable : function (e) {
                        //return e.clone(); 
                        //return $("#draggable").clone();
                        return "<span> Testing </span>";
                    },
// If I return nothing from this function then it works but it's not giving a hint. - see http://dojo.telerik.com/iLEQ/6
If I use an un-minified version of KendoUI and put a try/catch block at line 82431

$compile(el)(itemScope || scope);

It's throwing this message:

message: "undefined is not a function"

Any ideas what I might be doing wrong?

2 Answers, 1 is accepted

Sort by
0
Jeff
Top achievements
Rank 1
answered on 12 Aug 2014, 07:09 PM
It seems like there's a bug...

If I add a try/catch here:

try{
                        $compile(el)(itemScope || scope); //line no #82431
}catch(Error){}

the "hint" works fine.  I'm sure that's not a good permanent fix, but is there any chance this can be fixed in the next internal build?
0
Mihai
Telerik team
answered on 13 Aug 2014, 07:48 AM
Hi Nick,

I can confirm it's fixed (in this patch).  Please try with the latest internal build.

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Drag and Drop
Asked by
Jeff
Top achievements
Rank 1
Answers by
Jeff
Top achievements
Rank 1
Mihai
Telerik team
Share this question
or