Advertisement

09.22.2008 at 02:04PM PDT, ID: 23752991 | Points: 500
[x]
Attachment Details

Mootools scope problem?

Asked by cassiej81 in JavaScript, JavaScript Frameworks

Tags:

Hi, the script below said at all:

var Clazz = new Class({
      Implements: [Options, Events],
            options: {},
            initialize: function(options){
                  this.setOptions(options);
            },
      foo: function(){
            alert('Dummy');
            
      },
      bar: function(){
            //how i can call 'foo' here
        }
});

how can i call 'foo' in 'bar'?Please help!Start Free Trial
[+][-]09.23.2008 at 04:17AM PDT, ID: 22548093

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 07:52AM PDT, ID: 22550030

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628