Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a2eb628

Browse files
author
Matheus Grieger
committed
Fixed accident
1 parent 5328c0b commit a2eb628

File tree

4 files changed

+16
-25
lines changed

4 files changed

+16
-25
lines changed

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.4.1
4+
5+
- **FIX** accidentaly removed install function
6+
37
## v0.4.0
48

59
- **NEW** custom loading, loaded and error class naming

‎dist/vue-clazy-load.js‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,13 @@ return /******/ (function(modules) { // webpackBootstrap
7979

8080
"use strict";
8181
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
82+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; });
8283
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VueClazyLoad", function() { return VueClazyLoad; });
8384
/*!
8485
* Vue Clazy Load
8586
* Component-based lazy (CLazy) load images in Vue.js 2
8687
* @author Matheus Grieger
87-
* @version 0.4.0
88+
* @version 0.4.1
8889
*/
8990
var ClazyLoadComponent = {
9091
name: 'ClazyLoad',
@@ -283,18 +284,11 @@ var ClazyLoadComponent = {
283284
}
284285
};
285286

286-
/**
287-
* ClazyLoad default object for Vue.use() with install function
288-
*/
289-
var ClazyLoad = {
290-
install: function install(Vue) {
291-
Vue.component('clazy-load', ClazyLoadComponent);
292-
}
287+
// Exports install function for Vue
288+
var install = function install(Vue) {
289+
Vue.component('clazy-load', ClazyLoadComponent);
293290
};
294291

295-
// Full component and install
296-
/* harmony default export */ __webpack_exports__["default"] = (ClazyLoad);
297-
298292
// Component object
299293
var VueClazyLoad = ClazyLoadComponent;
300294

‎dist/vue-clazy-load.min.js‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/clazy-load.js‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Vue Clazy Load
33
* Component-based lazy (CLazy) load images in Vue.js 2
44
* @author Matheus Grieger
5-
* @version 0.4.0
5+
* @version 0.4.1
66
*/
77
const ClazyLoadComponent = {
88
name: 'ClazyLoad',
@@ -199,17 +199,10 @@ const ClazyLoadComponent = {
199199
}
200200
}
201201

202-
/**
203-
* ClazyLoad default object for Vue.use() with install function
204-
*/
205-
const ClazyLoad = {
206-
install(Vue) {
207-
Vue.component('clazy-load', ClazyLoadComponent)
208-
}
202+
// Exports install function for Vue
203+
export const install = (Vue) => {
204+
Vue.component('clazy-load', ClazyLoadComponent)
209205
}
210206

211-
// Full component and install
212-
export default ClazyLoad
213-
214207
// Component object
215208
export const VueClazyLoad = ClazyLoadComponent

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /