Skip to content

Commit

Permalink
Fix ssr document ref issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nosir committed Jul 8, 2018
1 parent eb0a141 commit e0e2060
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"form",
"input"
],
"version": "1.3.6",
"version": "1.3.8",
"author": {
"name": "Max Huang",
"email": "[email protected]",
Expand Down
5 changes: 2 additions & 3 deletions dist/cleave-angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -1266,9 +1266,9 @@ return /******/ (function(modules) { // webpackBootstrap

target.blocks = opts.blocks || [];
target.blocksLength = target.blocks.length;

target.document = opts.document || document;

target.root = (typeof global === 'object' && global) ? global : window;
target.document = opts.document || target.root.document;

target.maxLength = 0;

Expand All @@ -1283,7 +1283,6 @@ return /******/ (function(modules) { // webpackBootstrap

module.exports = DefaultProperties;


/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ })
Expand Down
4 changes: 2 additions & 2 deletions dist/cleave-angular.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cleave-react-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2421,8 +2421,8 @@ return /******/ (function(modules) { // webpackBootstrap
target.blocks = opts.blocks || [];
target.blocksLength = target.blocks.length;

target.document = opts.document || document;
target.root = (typeof global === 'undefined' ? 'undefined' : _typeof(global)) === 'object' && global ? global : window;
target.document = opts.document || target.root.document;

target.maxLength = 0;

Expand Down
4 changes: 2 additions & 2 deletions dist/cleave-react-node.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cleave-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -2615,8 +2615,8 @@ return /******/ (function(modules) { // webpackBootstrap
target.blocks = opts.blocks || [];
target.blocksLength = target.blocks.length;

target.document = opts.document || document;
target.root = (typeof global === 'undefined' ? 'undefined' : _typeof(global)) === 'object' && global ? global : window;
target.document = opts.document || target.root.document;

target.maxLength = 0;

Expand Down
4 changes: 2 additions & 2 deletions dist/cleave-react.min.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions dist/cleave.js
Original file line number Diff line number Diff line change
Expand Up @@ -1209,9 +1209,9 @@ return /******/ (function(modules) { // webpackBootstrap

target.blocks = opts.blocks || [];
target.blocksLength = target.blocks.length;

target.document = opts.document || document;

target.root = (typeof global === 'object' && global) ? global : window;
target.document = opts.document || target.root.document;

target.maxLength = 0;

Expand All @@ -1226,7 +1226,6 @@ return /******/ (function(modules) { // webpackBootstrap

module.exports = DefaultProperties;


/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ })
Expand Down
4 changes: 2 additions & 2 deletions dist/cleave.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"form",
"input"
],
"version": "1.3.7",
"version": "1.3.8",
"files": [
"src",
"dist",
Expand Down

0 comments on commit e0e2060

Please sign in to comment.