From ec3f5df0a5a9ba629164ee177973de4fe6c1ceb8 Mon Sep 17 00:00:00 2001 From: deplay <1150696014@qq.com> Date: Sat, 28 May 2016 13:02:51 +0800 Subject: [PATCH] ui.bootstrap.stackedMap_removeTop_enhancements change: return stack.splice(stack.length - 1, 1)[0]; to: return stack.pop() --- src/stackedMap/stackedMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;