Skip to content

Commit

Permalink
Merge pull request #2 from mabab/test
Browse files Browse the repository at this point in the history
fix deprecation
  • Loading branch information
mabab authored Sep 18, 2018
2 parents 37e34fd + 471b2fe commit f08ef64
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 30 deletions.
24 changes: 18 additions & 6 deletions addon/components/slick-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,34 @@ export default Component.extend({
rtl: this.get('rtl')
})
.on('afterChange', function ($event, slick, currentSlide) {
_this.sendAction('afterChange', slick, currentSlide);
if (_this.afterChange){
_this.afterChange(slick, currentSlide);
}
})
.on('beforeChange', function ($event, slick, currentSlide, nextSlide) {
_this.sendAction('beforeChange', slick, currentSlide, nextSlide);
if (_this.beforeChange){
_this.beforeChange(slick, currentSlide, nextSlide);
}
})
.on('edge', function ($event, slick, direction) {
_this.sendAction('edge', slick, direction);
if (_this.edge){
_this.edge(slick, direction);
}
})
.on('reInit', function ($event, slick) {
_this.sendAction('reInit', slick);
if (_this.reInit){
_this.reInit(slick);
}
})
.on('setPosition', function ($event, slick) {
_this.sendAction('setPosition', slick);
if (_this.setPosition){
_this.setPosition(slick);
}
})
.on('swipe', function ($event, slick, direction) {
_this.sendAction('swiped', slick, direction);
if (_this.swiped){
_this.swiped(slick, direction);
}
});

this.set('carousel', carousel);
Expand Down
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-slick",
"version": "1.0.14",
"version": "1.0.15",
"description": "Slick Slider addon for Ember CLI.",
"directories": {
"doc": "doc",
Expand All @@ -11,7 +11,7 @@
"build": "ember build",
"test": "ember try:testall"
},
"repository": "https://github.com/laantorchaweb/ember-cli-slick",
"repository": "https://github.com/mabab/ember-cli-slick",
"engines": {
"node": "^4.5 || 6.* || >= 7.*"
},
Expand All @@ -20,27 +20,27 @@
"main": "index.js",
"devDependencies": {
"broccoli-asset-rev": "^2.5.0",
"ember-assign-polyfill": "2.5.0",
"ember-cli": "^3.3.0",
"ember-cli-app-version": "^3.2.0",
"ember-cli-dependency-checker": "^3.0.0",
"ember-cli-eslint": "^4.2.3",
"ember-cli-fastboot": "^1.1.4-beta.1",
"ember-cli-htmlbars-inline-precompile": "^1.0.3",
"ember-cli-inject-live-reload": "^1.8.2",
"ember-cli-moment-shim": "3.7.1",
"ember-cli-qunit": "^4.3.2",
"ember-assign-polyfill": "2.0.1",
"ember-cli": "~2.15.0-beta.2",
"ember-cli-app-version": "^3.0.0",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-eslint": "^4.0.0",
"ember-cli-fastboot": "^1.0.0-beta.15",
"ember-cli-htmlbars-inline-precompile": "^1.0.0",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-moment-shim": "3.0.1",
"ember-cli-qunit": "^4.0.0",
"ember-cli-release": "1.0.0-beta.2",
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-uglify": "^2.1.0",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-cli-shims": "^1.1.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-disable-prototype-extensions": "^1.1.2",
"ember-export-application-global": "^2.0.0",
"ember-getowner-polyfill": "2.2.0",
"ember-load-initializers": "^1.1.0",
"ember-getowner-polyfill": "1.2.2",
"ember-load-initializers": "^1.0.0",
"ember-resolver": "^4.0.0",
"ember-source": "^3.4.0",
"loader.js": "^4.7.0"
"ember-source": "~2.15.0-beta.2",
"loader.js": "^4.2.3"
},
"keywords": [
"ember-addon",
Expand All @@ -50,12 +50,12 @@
"responsive"
],
"dependencies": {
"ember-cli-babel": "^6.17.0",
"ember-cli-htmlbars": "^3.0.0",
"ember-cli-babel": "^6.7.2",
"ember-cli-htmlbars": "^2.0.1",
"ember-cli-node-assets": "0.2.2",
"ember-invoke-action": "^1.5.1",
"ember-invoke-action": "^1.4.0",
"slick-carousel": "^1.8.1",
"fastboot-transform": "^0.1.3"
"fastboot-transform": "^0.1.2"
},
"ember-addon": {
"configPath": "tests/dummy/config"
Expand Down

0 comments on commit f08ef64

Please sign in to comment.