|
@@ -33,14 +33,14 @@ if ( Function.prototype.name === undefined && Object.defineProperty !== undefine
|
|
|
|
|
|
Object.defineProperty( Function.prototype, 'name', {
|
|
|
|
|
|
- get: function() {
|
|
|
+ get: function () {
|
|
|
|
|
|
- var name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
|
|
|
- return name;
|
|
|
+ return this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
|
|
|
|
|
|
}
|
|
|
|
|
|
- });
|
|
|
+ } );
|
|
|
+
|
|
|
}
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.button
|