when trying to use PartLoader getting error “arguments.callee.base.call is not a function”

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

when trying to use PartLoader getting error “arguments.callee.base.call is not a function”

hkalyoncu

hello
im trying to develop an standalone application with qooxdoo. i want to load each part
of GUI with PartLoader. i just want to load big group boxes when the user select the related menu item from the menu. but when i run the code (execute the part loading related function)
i got the error **"arguments.callee.base.call is not a function"**. im using Firefox 3.6 on windows xp.

this is the my part loading code in Application.js:

    qx.io.PartLoader.require(["part1"], function()
    {
            if (!this.__groupbox1)
            {
                    this.__groupbox1 = new appname.Classname();
                    container.add(this.__groupbox1, {left:20, top:40});

            }


    }, this);

this is the Class code to be loaded:

    qx.Class.define("appname.Classname",
    {
      extend : new qx.ui.groupbox.GroupBox,
   
      construct : function()
      {
   
            this.base(arguments);
            this._addContent();
   
   
   
      },
      members:
      {
       _addContent : function()
       {
           some_ui_parts;
           this.add(some_ui.parts);
           some_more_ui_parts;
           this.add(some_more_ui_parts);
        }
       }
    });

and this is the part of the config.jason related to PartLoader:

    "jobs":
    {
    "common":
    {
      "packages" :
      {
        "parts"  :
        {
          "boot"     :
          {
            "include" : [ "${QXTHEME}", "appname.Application" ]
          },
          "part1" :
          {
            "include" : [ "appname.Classname" ]
          }
        }
      }
    }
    }

note: i just replaced real appname & Classname with appname.Classname short.

i searched for this error but i could not find anything related.



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: when trying to use PartLoader getting error “arguments.callee.base.call is not a function”

Andreas Ecker
Hi Huseyin!

[...]

>     qx.io.PartLoader.require(["part1"], function()
>     {
>             if (!this.__groupbox1)
>             {
>                     this.__groupbox1 = new appname.Classname();
>                     container.add(this.__groupbox1, {left:20,
> top:40});
>
>             }
>
>
>     }, this);
>
> this is the Class code to be loaded:
>
>     qx.Class.define("appname.Classname",
>     {
>       extend : new qx.ui.groupbox.GroupBox,

No need to create an instance of the super class. Just do a regular
"extend: qx.ui.groupbox.GroupBox".

HTH,

Andreas



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: when trying to use PartLoader getting error “arguments.callee.base.call is not a function”

Alexander Steitz
In reply to this post by hkalyoncu
On Friday February 12 2010 09:54:12 Huseyin Kalyoncu wrote:

> hello
> im trying to develop an standalone application with qooxdoo. i want to load
>  each part of GUI with PartLoader. i just want to load big group boxes when
>  the user select the related menu item from the menu. but when i run the
>  code (execute the part loading related function) i got the error
>  **"arguments.callee.base.call is not a function"**. im using Firefox 3.6
>  on windows xp.
>
>
> note: i just replaced real appname & Classname with appname.Classname
>  short.
>
> i searched for this error but i could not find anything related.
I answered you question at stackoverflow.com which is the same answer as
Andreas already pointed out.

cheers,
  Alex

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel