瀏覽代碼

forget base interaction class

Adam Shaw 8 年之前
父節點
當前提交
6ba3452b0c
共有 1 個文件被更改,包括 23 次插入0 次删除
  1. 23 0
      src/component/interaction/Interaction.js

+ 23 - 0
src/component/interaction/Interaction.js

@@ -0,0 +1,23 @@
+
+var Interaction = Class.extend({
+
+	view: null,
+	component: null,
+
+
+	constructor: function(component) {
+		this.view = component._getView();
+		this.component = component;
+	},
+
+
+	opt: function(name) {
+		return this.view.opt(name);
+	},
+
+
+	end: function() {
+		// subclasses can implement
+	}
+
+});