Quantcast
Channel: Adobe Community : Unanswered Discussions - After Effects
Viewing all articles
Browse latest Browse all 30854

Extending prototypes

$
0
0

Hi there, I am building a menu system in AE, what do people think about extending the prototype of the Window object?

Thinking of containing everything within an object. . . .

 

First time I have done this, any advice on gotchas? Would I interfere withat anything 'Adobe' ?

 

 

 

Window.prototype.myMenus = {

  

    myMenuBuild: function(){  alert("building menus......!") }

 

 

}

 

w.myMenus.myMenuBuild();


Viewing all articles
Browse latest Browse all 30854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>