-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: slickness.on is not a function #25
Comments
uglified version return $timeout(function() {
initOptions();
var slickness;
slickness = angular.element(element).hasClass("slick-initialized") ? element.slick("getSlick") : element.slick(options), scope.internalControl = options.method || {}, slickMethodList.forEach(function(value) {
scope.internalControl[value] = function() {
var args;
args = Array.prototype.slice.call(arguments), args.unshift(value), slickness.slick.apply(element, args)
}
}), slickness.on("afterChange", function(event, slick, currentSlide, nextSlide) {
"undefined" != typeof options.event.afterChange && options.event.afterChange(event, slick, currentSlide, nextSlide)
}), "undefined" != typeof options.event.beforeChange && slickness.on("beforeChange", function(event, slick, currentSlide, nextSlide) {
options.event.beforeChange(event, slick, currentSlide, nextSlide)
}), "undefined" != typeof options.event.breakpoint && slickness.on("breakpoint", function(event, slick, breakpoint) {
options.event.breakpoint(event, slick, breakpoint)
}), "undefined" != typeof options.event.destroy && slickness.on("destroy", function(event, slick) {
options.event.destroy(event, slick)
}), "undefined" != typeof options.event.edge && slickness.on("edge", function(event, slick, direction) {
options.event.edge(event, slick, direction)
}), slickness.on("init", function(event, slick) {
"undefined" != typeof options.event.init && options.event.init(event, slick)
}), "undefined" != typeof options.event.reInit && slickness.on("reInit", function(event, slick) {
options.event.reInit(event, slick)
}), "undefined" != typeof options.event.setPosition && slickness.on("setPosition", function(event, slick) {
options.event.setPosition(event, slick)
}), "undefined" != typeof options.event.swipe && slickness.on("swipe", function(event, slick, direction) {
options.event.swipe(event, slick, direction)
})
}) |
But his is only on mobile chrome browser :/ |
Would you mind make a plnkr.co example ? thanks |
I dont know how to fix that |
sorry, should be plnkr.co. |
check version 3.0.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After the uglify I got error
TypeError: slickness.on is not a function
The text was updated successfully, but these errors were encountered: