1. #1
    Sencha User
    Join Date
    Apr 2009
    Location
    Berkshire, UK
    Posts
    41
    Vote Rating
    0
    treadmill is on a distinguished road

      0  

    Question Problem with Viewport - not a constructor

    Problem with Viewport - not a constructor


    Hi,

    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: http://admin.peachpublishing.co.uk/ed/xds_index.js
    Line: 15

    Here's the URL of this project.

    http://admin.peachpublishing.co.uk/ed/xds_index.html

    I've also attached the ExtDesigner project.

    Any ideas why I'm getting this error?

    Thanks,
    Kevin

  2. #2
    Sencha Premium Member
    Join Date
    Jan 2009
    Posts
    320
    Vote Rating
    47
    firefoxSafari has a spectacular aura about firefoxSafari has a spectacular aura about firefoxSafari has a spectacular aura about

      0  

    Default


    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
    Sencha User OPeixe's Avatar
    Join Date
    Dec 2009
    Posts
    5
    Vote Rating
    0
    OPeixe is on a distinguished road

      0  

    Default


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

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi