Skip to content

Commit

Permalink
add tests files.
Browse files Browse the repository at this point in the history
Signed-off-by: Noritaka Horio <holy.shared.design@gmail.com>
  • Loading branch information
holyshared committed May 27, 2011
1 parent c110d87 commit 658b818
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 10 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Mixin
===========================================





![Mixin](http://holyshared.github.com/class-attachment/logo.png "Mixin")

How to use
-----------------------------------------












Screenshots
------------------------------------------------------------------------
19 changes: 11 additions & 8 deletions Source/Class.Attachment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
---
name: Class.Attachment
name: Attachment
description:
Expand All @@ -24,19 +24,22 @@ provides: [Attachment]

var Attachment = this.Attachment = new Class({

handlers: {},
_attachHandlers: {},

// attachEvent: 'click',
// attachHandler: null,
attach: function(selecter){
if (!Type.isFunction(this.attachHandler)){

attach: funmction(selecter){
}
var elements = $$(selecter);
this.handlers[selecter] = elements;
this._attachHandlers[selecter] = elements;
elements.addEvent(this.attachEvent, this.attachHandler);
},

dettach: funmction(selecter){
var handler = this.handlers[selecter];
dettach: function(selecter){
if (!this._attachHandlers[selecter]){

}
var handler = this._attachHandlers[selecter];
elements.removeEvent(this.attachEvent, this.attachHandler);
}

Expand Down
17 changes: 17 additions & 0 deletions Tests/Class.Attachment.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script type="text/javascript" src="/depender/build?require=Mixin/Attachment"></script>
<script type="text/javascript">
(function(){

window.addEventListener('load', function(){








}, false);

}());
</script>
4 changes: 2 additions & 2 deletions package.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Class.Attachment
name: Class

web: "[http://sharedhat.com](http://sharedhat.com)"

Expand All @@ -15,7 +15,7 @@ sources:

author: Noritaka Horio

category: Realtime
category: Utilities

tags: [utils, mixin, class]

Expand Down

0 comments on commit 658b818

Please sign in to comment.