|
@@ -75,6 +75,21 @@ LUNGO.View.Scroll = (function(lng, undefined) {
|
|
|
_saveScrollInCache(id);
|
|
_saveScrollInCache(id);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Removes iScroll instance.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @method refresh
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param {Object} Id of the <section>
|
|
|
|
|
+ */
|
|
|
|
|
+ var refresh = function(id) {
|
|
|
|
|
+ var scroll = lng.dom('#' + id);
|
|
|
|
|
+ if (_needScroll(scroll)) {
|
|
|
|
|
+ var container = scroll.children().first();
|
|
|
|
|
+ _saveScrollInCache(id);
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Removes iScroll instance.
|
|
* Removes iScroll instance.
|
|
|
*
|
|
*
|
|
@@ -151,7 +166,8 @@ LUNGO.View.Scroll = (function(lng, undefined) {
|
|
|
create: create,
|
|
create: create,
|
|
|
update: update,
|
|
update: update,
|
|
|
remove: remove,
|
|
remove: remove,
|
|
|
- isHorizontal: isHorizontal
|
|
|
|
|
|
|
+ isHorizontal: isHorizontal,
|
|
|
|
|
+ refresh: refresh
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
})(LUNGO);
|
|
})(LUNGO);
|