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

Typescript defs are incorrect for kendo.bind

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rowan
Top achievements
Rank 1
Rowan asked on 12 Feb 2015, 12:41 AM
kendo.bind has an optional namespace 3rd param. However the typescript bindings in kendo.web.d.ts declare this 3rd param as required.

This means when using Typescript kendo.bind you always have to provide a namespace param, which is annoying.

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 13 Feb 2015, 04:06 PM

Hello Rowan,

I believe that his problem is fixed, as the signature for the latest builds is

  function bind(element: string, viewModel: any, namespace?: any): void;
  function bind(element: string, viewModel: kendo.data.ObservableObject, namespace?: any): void;
  function bind(element: JQuery, viewModel: any, namespace?: any): void;
  function bind(element: JQuery, viewModel: kendo.data.ObservableObject, namespace?: any): void;
  function bind(element: Element, viewModel: any, namespace?: any): void;
  function bind(element: Element, viewModel: kendo.data.ObservableObject, namespace?: any): void;

Which states the namespace as an optional parameter. 

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Rowan
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or