Skip to content

Commit

Permalink
Merge pull request #86 from bchelli/patch-1
Browse files Browse the repository at this point in the history
[React][SSR] Remove dependency to window
  • Loading branch information
nosir authored Aug 28, 2016
2 parents 8dca295 + ad6d70d commit 0c274f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cleave.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var Cleave = React.createClass({
// external google closure lib
try {
pps.phoneFormatter = new PhoneFormatter(
new window.Cleave.AsYouTypeFormatter(pps.phoneRegionCode),
new Cleave.AsYouTypeFormatter(pps.phoneRegionCode),
pps.delimiter
);
} catch (ex) {
Expand Down Expand Up @@ -281,4 +281,4 @@ var Cleave = React.createClass({
}
});

module.exports = window.Cleave = Cleave;
module.exports = Cleave;

0 comments on commit 0c274f9

Please sign in to comment.