| Index: ui/webui/resources/js/cr/ui/array_data_model.js
|
| diff --git a/ui/webui/resources/js/cr/ui/array_data_model.js b/ui/webui/resources/js/cr/ui/array_data_model.js
|
| index 969f9484ff8a295571d2c87f12929e24b71bfde3..f594d205dc4890c5d2f3a72f177329b98d8d833f 100644
|
| --- a/ui/webui/resources/js/cr/ui/array_data_model.js
|
| +++ b/ui/webui/resources/js/cr/ui/array_data_model.js
|
| @@ -222,6 +222,17 @@ cr.define('cr.ui', function() {
|
| },
|
|
|
| /**
|
| + * Removes and returns the last item of the model.
|
| + *
|
| + * This dispatches a splice event.
|
| + *
|
| + * @return {*} The last item, or undefined if model has no more items.
|
| + */
|
| + pop: function() {
|
| + return this.splice(this.array_.length - 1, 1)[0];
|
| + },
|
| +
|
| + /**
|
| * Updates the existing item with the new item.
|
| *
|
| * The existing item and the new item are regarded as the same item and the
|
|
|