oribella-framework
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -0,3 +1,13 @@ | ||
<a name="0.4.2"></a> | ||
## 0.4.2 (2016-03-04) | ||
### Bug Fixes | ||
* **dist:** update dist ([de679a9](https://github.com/oribella/framework/commit/de679a9)) | ||
<a name="0.4.1"></a> | ||
## 0.4.1 (2016-03-03) | ||
## [0.4.1](https://github.com/oribella/framework/compare/8a8b118...v0.4.1) (2016-03-03) | ||
@@ -4,0 +14,0 @@ |
@@ -41,2 +41,10 @@ define(["exports"], function (exports) { | ||
function getOwnPropertyDescriptors(src) { | ||
var descriptors = {}; | ||
Object.getOwnPropertyNames(src).forEach(function (key) { | ||
descriptors[key] = Object.getOwnPropertyDescriptor(src, key); | ||
}); | ||
return descriptors; | ||
} | ||
var Registry = (function () { | ||
@@ -70,6 +78,6 @@ function Registry() { | ||
defaultOptions = this.gestures[type].defaultOptions(); | ||
defaultOptionsPropertyDescriptors = Object.getOwnPropertyDescriptors(defaultOptions); | ||
defaultOptionsPropertyDescriptors = getOwnPropertyDescriptors(defaultOptions); | ||
} | ||
defaultOptions = Object.create(DefaultGestureOptions, defaultOptionsPropertyDescriptors); | ||
var optionsPropertyDescriptors = Object.getOwnPropertyDescriptors(subscriber.options); | ||
var optionsPropertyDescriptors = getOwnPropertyDescriptors(subscriber.options); | ||
subscriber.options = Object.create(defaultOptions, optionsPropertyDescriptors); | ||
@@ -76,0 +84,0 @@ var gesture = new this.gestures[type](subscriber, element); |
@@ -40,2 +40,10 @@ "use strict"; | ||
function getOwnPropertyDescriptors(src) { | ||
var descriptors = {}; | ||
Object.getOwnPropertyNames(src).forEach(function (key) { | ||
descriptors[key] = Object.getOwnPropertyDescriptor(src, key); | ||
}); | ||
return descriptors; | ||
} | ||
var Registry = (function () { | ||
@@ -69,6 +77,6 @@ function Registry() { | ||
defaultOptions = this.gestures[type].defaultOptions(); | ||
defaultOptionsPropertyDescriptors = Object.getOwnPropertyDescriptors(defaultOptions); | ||
defaultOptionsPropertyDescriptors = getOwnPropertyDescriptors(defaultOptions); | ||
} | ||
defaultOptions = Object.create(DefaultGestureOptions, defaultOptionsPropertyDescriptors); | ||
var optionsPropertyDescriptors = Object.getOwnPropertyDescriptors(subscriber.options); | ||
var optionsPropertyDescriptors = getOwnPropertyDescriptors(subscriber.options); | ||
subscriber.options = Object.create(defaultOptions, optionsPropertyDescriptors); | ||
@@ -75,0 +83,0 @@ var gesture = new this.gestures[type](subscriber, element); |
@@ -10,2 +10,10 @@ System.register([], function (_export) { | ||
function getOwnPropertyDescriptors(src) { | ||
var descriptors = {}; | ||
Object.getOwnPropertyNames(src).forEach(function (key) { | ||
descriptors[key] = Object.getOwnPropertyDescriptor(src, key); | ||
}); | ||
return descriptors; | ||
} | ||
return { | ||
@@ -71,6 +79,6 @@ setters: [], | ||
defaultOptions = this.gestures[type].defaultOptions(); | ||
defaultOptionsPropertyDescriptors = Object.getOwnPropertyDescriptors(defaultOptions); | ||
defaultOptionsPropertyDescriptors = getOwnPropertyDescriptors(defaultOptions); | ||
} | ||
defaultOptions = Object.create(DefaultGestureOptions, defaultOptionsPropertyDescriptors); | ||
var optionsPropertyDescriptors = Object.getOwnPropertyDescriptors(subscriber.options); | ||
var optionsPropertyDescriptors = getOwnPropertyDescriptors(subscriber.options); | ||
subscriber.options = Object.create(defaultOptions, optionsPropertyDescriptors); | ||
@@ -77,0 +85,0 @@ var gesture = new this.gestures[type](subscriber, element); |
{ | ||
"name": "oribella-framework", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Normalizes event flows into an understandable consistent api", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161034
3810