Skip to content

Commit

Permalink
Merge pull request #30 from clairecoloma/master
Browse files Browse the repository at this point in the history
add the possibility to reinitialize the position
  • Loading branch information
FokkeZB committed Oct 14, 2014
2 parents 24bb1cd + c0d1ff9 commit 351e17c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions controllers/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ function _updateMessage(_message) {
}
}

function reinitPosition() {
if (list) {
mark();
} else {
position = null;
}
}

exports.SUCCESS = 1;
exports.ERROR = 0;
exports.DONE = -1;
Expand All @@ -226,3 +234,4 @@ exports.state = state;
exports.dettach = dettach;
exports.init = init;
exports.mark = mark;
exports.reinitPosition = reinitPosition;

0 comments on commit 351e17c

Please sign in to comment.