Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgrieger committed Apr 11, 2018
2 parents 5e3abd3 + 53d1375 commit 5821a86
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.4.2

- **FIX** restored install function for ES6 modules

## v0.4.1

- **FIX** accidentaly removed install function
Expand Down
9 changes: 7 additions & 2 deletions dist/vue-clazy-load.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
* Vue Clazy Load
* Component-based lazy (CLazy) load images in Vue.js 2
* @author Matheus Grieger
* @version 0.4.1
* @version 0.4.2
*/
var ClazyLoadComponent = {
name: 'ClazyLoad',
Expand Down Expand Up @@ -284,14 +284,19 @@ var ClazyLoadComponent = {
}
};

// Exports install function for Vue
// Export install function for CDN embeds
var install = function install(Vue) {
Vue.component('clazy-load', ClazyLoadComponent);
};

// Component object
var VueClazyLoad = ClazyLoadComponent;

// Exports default object for ES6 modules
/* harmony default export */ __webpack_exports__["default"] = ({
install: install
});

/***/ })
/******/ ]);
});
4 changes: 2 additions & 2 deletions dist/vue-clazy-load.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions src/clazy-load.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Vue Clazy Load
* Component-based lazy (CLazy) load images in Vue.js 2
* @author Matheus Grieger
* @version 0.4.1
* @version 0.4.2
*/
const ClazyLoadComponent = {
name: 'ClazyLoad',
Expand Down Expand Up @@ -199,10 +199,15 @@ const ClazyLoadComponent = {
}
}

// Exports install function for Vue
// Export install function for CDN embeds
export const install = (Vue) => {
Vue.component('clazy-load', ClazyLoadComponent)
}

// Component object
export const VueClazyLoad = ClazyLoadComponent

// Exports default object for ES6 modules
export default {
install
}

0 comments on commit 5821a86

Please sign in to comment.