From c785347a84a66d36d5f03fec74f91f4ffd832037 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Wed, 13 Apr 2016 18:35:19 -0400 Subject: [PATCH] Added a function to tell if a bundle is complete. --- main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.js b/main.js index 234091c..66dc2f8 100644 --- a/main.js +++ b/main.js @@ -140,6 +140,9 @@ var v = new Vue({ } return true; + }, + isBundleComplete: function(bundle_id){ + return this.user_data[bundle_id].length >= this.static.bundles[bundle_id].items_required; } } });