Commits

ryanackley committed 0ff0628

bug fixes

  • Participants
  • Parent commits da94a40

Comments (0)

Files changed (2)

File FileWatcher.js

 
 FileWatcher.prototype = {
 	fileChanged : function(path){
+		//console.log(path); 
 		if (this.isMyChange(path)){
 			return;
 		}

File ResourceChecker.js

 });
 
 var fileChangeListener = function(data){
-	var setContent = function(resource, data){
+	// resource content seems to be naively cached. No way to get the most recent content without
+	// storing it ourselves. Does it matter that much?
+	/*var setContent = function(resource, data){
 		resource.getContent(function(content){
 			if (data.content != content){
 				recentUpdateHandler.addRecentUpdate(resource.url);
 				resource.setContent(data.content, true);
 			}
 		});
-	};
+	};*/
 	for (var i = 0; i < resourceCache.length; i++){
 		if (resourceCache[i].url === data.url){
-			setContent(resourceCache[i], data);
+			//setContent(resourceCache[i], data);
+			var resource = resourceCache[i];
+			recentUpdateHandler.addRecentUpdate(resource.url);
+			resource.setContent(data.content, true);
 		}
 	}
 };