Typescript defs are incorrect for kendo.bind

2 posts, 1 answers
  1. Rowan
    Rowan avatar
    21 posts
    Member since:
    Jul 2014

    Posted 11 Feb 2015 Link to this post

    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.
  2. Answer
    Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 13 Feb 2015 Link to this post

    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!
     
Back to Top