Change straps.js to directly use initialize() as constructor function rather than redirecting calls to it.

Should yield some interesting performance improvements.
This commit is contained in:
Jürg Lehni 2013-05-27 09:11:50 -07:00
parent 094e35f2e5
commit 369b329b23
14 changed files with 24 additions and 21 deletions

View file

@ -24,7 +24,7 @@
*/
var MouseEvent = this.MouseEvent = Event.extend(/** @lends MouseEvent# */{
initialize: function(type, event, point, target, delta) {
this.base(event);
Event.call(this, event);
this.type = type;
this.point = point;
this.target = target;