diff --git a/src/stackedMap/stackedMap.js b/src/stackedMap/stackedMap.js index b6751c96c6..f1f4d857b4 100644 --- a/src/stackedMap/stackedMap.js +++ b/src/stackedMap/stackedMap.js @@ -43,7 +43,7 @@ angular.module('ui.bootstrap.stackedMap', []) return stack.splice(idx, 1)[0]; }, removeTop: function() { - return stack.splice(stack.length - 1, 1)[0]; + return stack.pop(); }, length: function() { return stack.length;