Permalink
Browse files

add missing comments

  • Loading branch information...
1 parent ae32b7b commit aa7d48074ed1f1100beebe08324ed018b85756b4 @podefr podefr committed Sep 7, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/Stack.js
View
@@ -287,10 +287,20 @@ function Stack() {
}
};
+ /**
+ * Get the last dom element that the stack transitted to
+ * @returns {HTMLElement} the last dom element
+ */
this.getLastTransit = function getLastTransit() {
return _lastTransit;
};
+ /**
+ * Transit between views, will show the new one and hide the previous
+ * element that the stack transitted to, if any.
+ * @param {HTMLElement} dom the element to transit to
+ * @returns {Boolean} false if the element can't be shown
+ */
this.transit = function transit(dom) {
if (_lastTransit) {
this.hide(_lastTransit);

0 comments on commit aa7d480

Please sign in to comment.