nativescript-slides
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -42,3 +42,2 @@ import { AbsoluteLayout } from 'ui/layouts/absolute-layout'; | ||
private setupDefaultValues(); | ||
loaded(): void; | ||
constructView(constructor?: boolean): void; | ||
@@ -45,0 +44,0 @@ nextSlide(): void; |
@@ -166,4 +166,2 @@ "use strict"; | ||
}; | ||
SlideContainer.prototype.loaded = function () { | ||
}; | ||
SlideContainer.prototype.constructView = function (constructor) { | ||
@@ -274,3 +272,13 @@ var _this = this; | ||
if (this._slideMap.length > 0 && index < this._slideMap.length) { | ||
var previousSlide = this.currentPanel; | ||
this.setupPanel(this._slideMap[index]); | ||
this.notify({ | ||
eventName: SlideContainer.CHANGED_EVENT, | ||
object: this, | ||
eventData: { | ||
direction: direction.none, | ||
newIndex: this.currentPanel.index, | ||
oldIndex: previousSlide.index, | ||
} | ||
}); | ||
} | ||
@@ -277,0 +285,0 @@ else { |
@@ -165,5 +165,3 @@ require("nativescript-dom"); | ||
} | ||
loaded() { | ||
} | ||
public constructView(constructor: boolean = false): void { | ||
@@ -296,3 +294,3 @@ this.on(AbsoluteLayout.loadedEvent, (data: any) => { | ||
eventData: { | ||
direction: direction.left, | ||
direction: direction.none, | ||
newIndex: this.currentPanel.index, | ||
@@ -299,0 +297,0 @@ oldIndex: previousSlide.index, |
{ | ||
"name": "nativescript-slides", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "NativeScript Slides plugin.", | ||
@@ -5,0 +5,0 @@ "main": "nativescript-slides.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70903
1266