Skip to content

Commit

Permalink
Merge pull request canjs#20 from canjs/window
Browse files Browse the repository at this point in the history
check if window is defined
  • Loading branch information
matthewp authored Sep 5, 2017
2 parents b32ddd2 + 9d7164f commit 00a65fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions can-legacy-view-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ var legacyHelpers = {
nodeLists: nodeLists
};

window.CAN_LEGACY_HELPERS = legacyHelpers;

if(typeof window !== "undefined"){
window.CAN_LEGACY_HELPERS = legacyHelpers;
}

module.exports = legacyHelpers;

0 comments on commit 00a65fc

Please sign in to comment.