https://github.com/holyshared/mixin
It builds in the class and crowding and a variety of Mixin classes are offered.
https://github.com/holyshared/mixin
Last synced: 11 months ago
JSON representation
It builds in the class and crowding and a variety of Mixin classes are offered.
- Host: GitHub
- URL: https://github.com/holyshared/mixin
- Owner: holyshared
- Created: 2011-05-27T02:10:36.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-05-30T03:48:29.000Z (about 15 years ago)
- Last Synced: 2025-07-20T01:30:21.879Z (11 months ago)
- Language: JavaScript
- Homepage: http://sharedhat.com
- Size: 332 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Mixin
===========================================
It builds in the class and crowding and a variety of Mixin classes are offered.
It is possible to use it only by building it in the class.

How to use
-------------------------------------------
### Class.Attachment
#### Definition of class
The Attachment class is built in with Implements.
And, attachEvent and attachHandler are defined.
var Mock = new Class({
Implements: [Attachment],
//Generated event type.
attachEvent: 'click',
//Attached event.
attachHandler: function(event){
//do something
}
});
#### Attachment to event
The event is attached to the corresponding element by the use of the attach method.
The dettach method is used to release the event.
var mock = Mock();
mock.attach('ul li a');
mock.attach(dettach);
Option of build
-------------------------------------------
Mixin/* +use-only Mixin