OSDN Git Service

add メソッドの実装
authorYoshihiro Yamazaki <yoya@awm.jp>
Fri, 23 Nov 2012 16:15:53 +0000 (01:15 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Fri, 23 Nov 2012 16:15:53 +0000 (01:15 +0900)
dict.js

diff --git a/dict.js b/dict.js
index 04d38ab..d3d0fdf 100644 (file)
--- a/dict.js
+++ b/dict.js
@@ -3,8 +3,8 @@
        this.dict = {};
     };
     FlappDict.prototype = {
-       add: function(content) {
-           ;
+       add: function(tag) {
+           this.dict[tag.id] = tag;
        }
     };
     global.FlappDict = FlappDict;