mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-12 22:18:54 -04:00
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:
parent
094e35f2e5
commit
369b329b23
14 changed files with 24 additions and 21 deletions
src/ui
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue