Results 1 to 3 of 3

Thread: Problem with Viewport - not a constructor

  1. #1
    Sencha User
    Join Date
    Apr 2009
    Manchester, UK

    Question Problem with Viewport - not a constructor


    I've created a simple project which works fine in the designer. Run it from a browser and I get the following error:

    Error: ppViewPort is not a constructor
    Source File:
    Line: 15

    Here's the URL of this project.

    I've also attached the ExtDesigner project.

    Any ideas why I'm getting this error?


  2. #2
    Sencha Premium User
    Join Date
    Jan 2009


    It appears there is a bug in the Designer where assigning a jsClass name where the first character is lowercase results in an error. This is because the var reference name that gets used in one of the .js files then happens to be the name of the class - name collision!

    I'd file a bug report on this. However, best practice oo programming is usually to begin a class name with an uppercase character, anyway.

    Change your jsClass on the ViewPort to have an uppercase first character - like MyViewPort or something - and you should be fine.

  3. #3


    Hey thanks for the solution, I was having the same problem. Should be fixed.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts