Permalink
Browse files

nodeIndex cache not getting cleared, leads to old links causing null …

…pointer exception
  • Loading branch information...
1 parent 340af9c commit 0db98bddd88e76aff1df63b9c34256d6daf9399a @acroyear acroyear committed with etgryphon Apr 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 frameworks/linkit/views/canvas.js
@@ -495,7 +495,7 @@ LinkIt.CanvasView = SC.CollectionView.extend({
var nodes = this.get('content');
var numNodes = 0;
var node, nodeID;
- this._nodeIndex = this._nodeIndex || {};
+ this._nodeIndex = {};
if (nodes) {
numNodes = nodes.get('length');
for (var i = 0; i < numNodes; i++) {

0 comments on commit 0db98bd

Please sign in to comment.