Skip to content

Commit 757bf8a

Browse files
author
Edward Xiao
committed
/* istanbul ignore else */ build
1 parent d401413 commit 757bf8a

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

lib/components/message.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,7 @@ var getCustomErrorMessage = function getCustomErrorMessage(o, m) {
236236

237237
exports.getCustomErrorMessage = getCustomErrorMessage;
238238

239-
if (typeof window !== 'undefined') {
240-
window.REACT_INPUTS_VALIDATION = window.REACT_INPUTS_VALIDATION || {};
241-
} // TODO: find a rewire way to handle non-export function
242-
243-
239+
// TODO: find a rewire way to handle non-export function
244240
var handleCustomErrorMessage = function handleCustomErrorMessage(message, w) {
245241
var res;
246242

@@ -256,10 +252,13 @@ var handleCustomErrorMessage = function handleCustomErrorMessage(message, w) {
256252

257253
return res;
258254
};
255+
/* istanbul ignore else */
256+
259257

260258
exports.handleCustomErrorMessage = handleCustomErrorMessage;
261259

262260
if (typeof window !== 'undefined') {
261+
window.REACT_INPUTS_VALIDATION = window.REACT_INPUTS_VALIDATION || {};
263262
message = handleCustomErrorMessage(message, window);
264263
}
265264

lib/react-inputs-validation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)