MooTools 1.3 | What is a Class

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
807 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 20, 2011

Learn how to use classes and combine them with options functions and more!
http://mootools.net/

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • @Styks1987 Just make the element temporary global by using window.element as a reference instead of this.element. ;)

  • Nice one,Subscribed.Please keep it up. :)

  • Thank you for the tutorial. Could you possibly answer this question?

    // Class stuff above

    fuction1 : function () { myelements.addEvent('click', this.function2);

    },

    function2 : function () { // "this" is the element from function1 this.getParent('div')  // now I need to call another function // But since the scope is the element, I get an error // If I bind function two, // how can I gain access to the element? this.function3();

    }

    //Class stuff below

    Thanks!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more