Commits

Ralph Bean  committed c3c4af6

Added a .remove_key() js util function.

  • Participants
  • Parent commits 6c18a10

Comments (0)

Files changed (1)

File tw2/d3/static/ext/bar.js

             }
             return data;
         },
+        remove_key: function(selector, key) {
+            var i = tw2.d3.util.index_of(selector, key);
+            tw2.store[selector].data.splice(i, 1);
+        },
         schedule_bump_random: function(selector, interval) {
             // Schedule randomly bump data points for `selector`
             setInterval(function() {