Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Tuesday, July 20, 2010

Calling super class method in javascript

In order to call super class's method, do this:
ClassName.prototype.method.call(this);
where "this" is the child object.

Tuesday, July 13, 2010

Use minimal version of javascript to speedup downloading

whenever you develop some javascript code, always convert it to minimal version before deployment. Minimal version removes extra spaces, comments and other stuffs, thus greatly increasing downloading speed by decreasing the javascript file size. One tool is JSMin