Skip to content

Commit

Permalink
Capitalize global experience object
Browse files Browse the repository at this point in the history
  • Loading branch information
ediblecode committed Sep 29, 2016
1 parent 1b1b1ee commit f69e9ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ var experience = require("experience");
var tabs = new experience.Tabs(el);

// Not recommended - global namespace usage
var tabs = new NICE.experience.Tabs(el);
var tabs = new NICE.Experience.Tabs(el);

// Use the jquery plugin version
$(".a-selector").tabs();
Expand Down
6 changes: 3 additions & 3 deletions src/javascripts/experience.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ $.fn.experience = function() {
pluginAutoLoader.findPlugins(this);
};

let experience = {
let Experience = {
Tabs: Tabs,
Tracker: Tracker
};

// Export to global namespace for precompiled usage
window.NICE = window.NICE || {};
window.NICE.experience = experience;
window.NICE.Experience = Experience;

export {
experience as default,
Experience as default,
// Individual modules
Tabs,
Tracker
Expand Down

0 comments on commit f69e9ad

Please sign in to comment.