Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Ext JS quirks when used with Aptana

  1. #1

    Default Ext JS quirks when used with Aptana

    I am brand new to Ext JS and just getting started. After reading your blog I decided to check out Ext JS in Aptana. Aptana has identified several problems with your javascript. The bundled version with the IDE is 1.0.1.

    This first bug is in the file ext-yui-adapter.js. The code is compressed but it looks like its in the 'combine' function with the declaration "var as=arguments". The word 'as' is reserved in Javascript.
    Last edited by edwrenbeck; 29 Aug 2007 at 4:06 PM. Reason: Make post about Aptana in general

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

    'as' is only a keyword in "Javascript 2.0," which is a proposed new version. This isn't a bug.

  3. #3
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  4. #4

    Default ok, I buy it

    However, it would make Ext JS more friendly to Aptana to change the variable name, which looks to be pretty local.

    Thanks for the quick response!

  5. #5
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    I understand your good intentions to make Ext better. Nevertheless, is this a bug?

    If yes, then post it per above link, if not let me know and I'll move this thread to General Discussion or Prerelease Builds forums.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  6. #6

    Default I think moving it to general discussion would be fine

    In addition, if you are able to update the title maybe it can be made to reference Aptana in general. I have a couple of other minor changes I've noticed that would make it more friendly with an IDE like Aptana.

    I've noticed a couple of places where shortcuts were used which result in errors being reported by the IDE. I would imagine those shortcuts are optimizations that are really not necessary.

    For example, in DomHelper.js in version 1.0.1, line 248 is

    247: var rs;
    248: if(rs = insertIntoTable(tag, where, el, html)){
    249: return rs;
    250: }

    Something like the following is more parsable by the IDE:

    var rs = insertIntoTable(tag, where, el, html);
    if(rs != null){
    return rs;
    }

    Thanks, Ed.

  7. #7
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    You can change name of the thread yourself by editing the first post (go to advanced mode), however, you cannot move the thread.

    Do you want me to move it?
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  8. #8

    Default Please go ahead and move

    Maybe if there is enough concurrence on some of these issues a future enhancement request can be put together

  9. #9
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    [ moved to General from Bugs ]

    this isn't a bug in Ext. moving this to the General discussions forum.

    p.s. you should bring this up in the Aptana bug thread.
    i believe the Spket standalone / plugin for Eclipse is able to handle Ext conventions correctly.

  10. #10

    Default

    Hmm, aptana also mark
    Code:
    var i = .6;
    as error, maybe should make JavaScript Spec. more friendly to Aptana...
    Spket IDE - Development Tool for RIA

Page 1 of 2 12 LastLast

Posting Permissions

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