Skip to content

How To Extend a Class

fahimc edited this page Sep 4, 2011 · 5 revisions

To extend a class use the extend function and provide it with the new class and the extending class. extend(SearchView,DisplayObject);

Example:

(function(window) { extend(SearchView,DisplayObject); function SearchView() {

} window.SearchView = SearchView; }(window));

Clone this wiki locally