amalgame/commit

last refs to OPM in uppercase ...

authorJacco van Ossenbruggen
Wed Jan 30 12:41:33 2013 +0100
committerJacco van Ossenbruggen
Wed Jan 30 12:41:33 2013 +0100
commitaef3c88afcc2177ccc7b95e78ee9296f4d39ffc1
tree9c5380ec9e5b2905ee959a6692b509522bc76bae
parent1cc3203875f346176083373f0a7ca1ea533323bc
Diff style: patch stat
diff --git a/web/js/builder.js b/web/js/builder.js
index 9c0e00a..45347d8 100644
--- a/web/js/builder.js
+++ b/web/js/builder.js
@@ -4,7 +4,7 @@ YUI.add('builder', function(Y) {
 		Node = Y.Node,
 		Plugin = Y.Plugin;
 
-	var	NODE_OPM			= Y.one("#strategy_graph"),
+	var	NODE_GRAPH			= Y.one("#strategy_graph"),
 		NODE_CONTROLS			= Y.one("#controls"),
 		NODE_INFO			= Y.one("#info"),
 		NODE_SELECT			= Y.one("#select");
@@ -126,12 +126,12 @@ YUI.add('builder', function(Y) {
 		},
 
 		_initGraph : function() {
-			this.strategy_viz = new Y.OPMViz({
+			this.strategy_viz = new Y.StratViz({
 				paths:this.get("paths"),
 				alignment: this.get("alignment"),
 				selected: this.get("selected"),
 				nodes: this.get("nodes")
-			}).render(NODE_OPM);
+			}).render(NODE_GRAPH);
 		},
 
 		_initInfo : function() {
diff --git a/web/js/strategy_viz.js b/web/js/strategy_viz.js
index 41a8293..7846997 100644
--- a/web/js/strategy_viz.js
+++ b/web/js/strategy_viz.js
@@ -6,11 +6,11 @@ YUI.add('strategy_viz', function(Y) {
 
 	var svgNS = "http://www.w3.org/2000/svg";
 
-	function OPMViz(config) {
-		OPMViz.superclass.constructor.apply(this, arguments);
+	function StratViz(config) {
+		StratViz.superclass.constructor.apply(this, arguments);
 	}
-	OPMViz.NAME = "strategy_viz";
-	OPMViz.ATTRS = {
+	StratViz.NAME = "strategy_viz";
+	StratViz.ATTRS = {
 		alignment: {
 			value: null
 		},
@@ -22,7 +22,7 @@ YUI.add('strategy_viz', function(Y) {
 		}
 	};
 
-	Y.extend(OPMViz, Y.Widget, {
+	Y.extend(StratViz, Y.Widget, {
 		initializer: function(config) {
 			this.infoDS = new Y.DataSource.IO({
 				source: this.get("paths").nodeinfo
@@ -94,6 +94,6 @@ YUI.add('strategy_viz', function(Y) {
 		
 	});
 
-	Y.OPMViz = OPMViz;
+	Y.StratViz = StratViz;
 
 }, '0.0.1', { requires: ['node','event','widget']});