rax-image
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -19,3 +19,5 @@ "use strict"; | ||
lazyLoad: false, | ||
onClick: function onClick() {} | ||
onClick: function onClick(e) {}, | ||
onLoad: function onLoad(e) {}, | ||
onError: function onError(e) {} | ||
}, | ||
@@ -35,2 +37,10 @@ onInit: function onInit() { | ||
}, | ||
onLoad: function onLoad(e) { | ||
var event = (0, _fmtEvent.default)(this.props, e); | ||
this.props.onLoad(event); | ||
}, | ||
onError: function onError(e) { | ||
var event = (0, _fmtEvent.default)(this.props, e); | ||
this.props.onError(event); | ||
}, | ||
initImage: function initImage(e) { | ||
@@ -37,0 +47,0 @@ var mode = 'aspectFit'; |
{ | ||
"name": "rax-image", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Image component for Rax.", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -15,3 +15,5 @@ import fmtEvent from './fmtEvent'; | ||
lazyLoad: false, | ||
onClick: function onClick() {} | ||
onClick: e => {}, | ||
onLoad: e => {}, | ||
onError: e => {} | ||
}, | ||
@@ -31,2 +33,10 @@ onInit() { | ||
}, | ||
onLoad: function onLoad(e) { | ||
var event = fmtEvent(this.props, e); | ||
this.props.onLoad(event); | ||
}, | ||
onError: function onError(e) { | ||
var event = fmtEvent(this.props, e); | ||
this.props.onError(event); | ||
}, | ||
initImage: function initImage(e) { | ||
@@ -33,0 +43,0 @@ var mode = 'aspectFit'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
21669
542