metal-events
Advanced tools
Comparing version 2.6.0 to 2.6.4
@@ -7,4 +7,2 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -153,19 +151,11 @@ | ||
value: function buildFacade_(event) { | ||
var _this2 = this; | ||
if (this.getShouldUseFacade()) { | ||
var _ret = function () { | ||
var facade = { | ||
preventDefault: function preventDefault() { | ||
facade.preventedDefault = true; | ||
}, | ||
target: _this2, | ||
type: event | ||
}; | ||
return { | ||
v: facade | ||
}; | ||
}(); | ||
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v; | ||
var facade = { | ||
preventDefault: function preventDefault() { | ||
facade.preventedDefault = true; | ||
}, | ||
target: this, | ||
type: event | ||
}; | ||
return facade; | ||
} | ||
@@ -172,0 +162,0 @@ } |
{ | ||
"name": "metal-events", | ||
"version": "2.6.0", | ||
"version": "2.6.4", | ||
"description": "Classes responsible for emitting and listening to events", | ||
@@ -25,3 +25,3 @@ "license": "BSD", | ||
"dependencies": { | ||
"metal": "^2.6.0" | ||
"metal": "^2.6.4" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
52015
1475
Updatedmetal@^2.6.4