@enact/core
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -5,2 +5,6 @@ # Change Log | ||
## [1.5.0] - 2017-07-19 | ||
No significant changes. | ||
## [1.4.1] - 2017-07-05 | ||
@@ -7,0 +11,0 @@ |
@@ -258,2 +258,21 @@ 'use strict'; | ||
/** | ||
* Calls `event.preventDefault()` and returns `true`. | ||
* | ||
* ``` | ||
* import {handle, preventDefault} from '@enact/core/handle'; | ||
* | ||
* const preventAndLog = handle( | ||
* preventDefault, | ||
* (ev) => console.log('preventDefault called') | ||
* ); | ||
* ``` | ||
* | ||
* @method preventDefault | ||
* @memberof core/handle | ||
* @param {Object} ev Event | ||
* @returns {Boolean} Always returns `true` | ||
*/ | ||
var _preventDefault = handle.preventDefault = callOnEvent('preventDefault'); | ||
/** | ||
* Forwards the event to a function at `name` on `props` with capability to prevent default | ||
@@ -285,2 +304,3 @@ * behavior. If the specified prop is `undefined` or is not a function, it is ignored. Returns | ||
prevented = true; | ||
_preventDefault(ev); | ||
} | ||
@@ -294,21 +314,2 @@ }); | ||
/** | ||
* Calls `event.preventDefault()` and returns `true`. | ||
* | ||
* ``` | ||
* import {handle, preventDefault} from '@enact/core/handle'; | ||
* | ||
* const preventAndLog = handle( | ||
* preventDefault, | ||
* (ev) => console.log('preventDefault called') | ||
* ); | ||
* ``` | ||
* | ||
* @method preventDefault | ||
* @memberof core/handle | ||
* @param {Object} ev Event | ||
* @returns {Boolean} Always returns `true` | ||
*/ | ||
var preventDefault = handle.preventDefault = callOnEvent('preventDefault'); | ||
/** | ||
* Calls `event.stopPropagation()` and returns `true` | ||
@@ -466,4 +467,4 @@ * | ||
exports.oneOf = oneOf; | ||
exports.preventDefault = preventDefault; | ||
exports.preventDefault = _preventDefault; | ||
exports.stop = stop; | ||
exports.stopImmediate = stopImmediate; |
@@ -26,5 +26,7 @@ 'use strict'; | ||
right: 39, | ||
down: 40 | ||
down: 40, | ||
pageUp: 33, | ||
pageDown: 34 | ||
}); // keymap uses a singleton object, map, to manage the keymap. since webpack may make multiple copies | ||
// of the module available if the import path is different, we ensure a consistent import path for | ||
// the singleton instance by facading it with this module. |
{ | ||
"name": "@enact/core", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.", | ||
@@ -32,8 +32,8 @@ "main": "index.js", | ||
"classnames": "~2.2.5", | ||
"invariant": "~2.2.1", | ||
"prop-types": "~15.5.0", | ||
"ramda": "~0.23.0", | ||
"react": "~15.5.0", | ||
"react-dom": "~15.5.0" | ||
"invariant": "~2.2.2", | ||
"prop-types": "~15.5.10", | ||
"ramda": "~0.24.1", | ||
"react": "~15.6.1", | ||
"react-dom": "~15.6.1" | ||
} | ||
} |
@@ -27,6 +27,2 @@ 'use strict'; | ||
var _isArrayLike = require('ramda/src/isArrayLike'); | ||
var _isArrayLike2 = _interopRequireDefault(_isArrayLike); | ||
var _is = require('ramda/src/is'); | ||
@@ -151,3 +147,3 @@ | ||
var coerceArray = function coerceArray(array) { | ||
return (0, _isArrayLike2.default)(array) ? array : [array]; | ||
return Array.isArray(array) ? array : [array]; | ||
}; | ||
@@ -154,0 +150,0 @@ |
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
3219
123026
+ Addedcreate-react-class@15.7.0(transitive)
+ Addedramda@0.24.1(transitive)
+ Addedreact@15.6.2(transitive)
+ Addedreact-dom@15.6.2(transitive)
- Removedramda@0.23.0(transitive)
- Removedreact@15.5.4(transitive)
- Removedreact-dom@15.5.4(transitive)
Updatedinvariant@~2.2.2
Updatedprop-types@~15.5.10
Updatedramda@~0.24.1
Updatedreact@~15.6.1
Updatedreact-dom@~15.6.1