Comments (1)
Hi!
We should Implements Events mixin in Fifteen controller:
Fifteen.Field = atom.Class({
Extends: atom.Class.Options,
Implements: [ atom.Class.Events ],
initialize: function (options) {
So now we can fire events of field and we can do it:
activate: function ( disableAll ) {
if (this.isComplete()) {
return this.fireEvent( 'complete' );
}
// ...
},
Than we can bind for events in controller instance:
atom.dom(function () {
var fifteenField = new Fifteen.Field({
tile: {
width : 64,
height: 64,
margin: 4
}
});
fifteenField.addEvent( 'complete', function () {
alert( 'WIN!' );
});
});
If you have any questions - you can write me to skype: shock13666
from libcanvas.
Related Issues (20)
- How to set direction of linear gradient HOT 1
- Typo in Source / Core / Context2D.js ln 509 HOT 1
- События мыши HOT 1
- Implementing Fire effect HOT 5
- Rotate Shape (Rectangle) HOT 1
- event.layerX and event.layerY are broken and deprecated in WebKit. HOT 3
- this.shape.hasPoint - ошибка HOT 2
- getCellBy... не принимает массив в качестве аргумента HOT 1
- Optimizing performance HOT 3
- Optimize drawImage HOT 2
- Баг в Engines.Tile.Element HOT 1
- Line distance to - zero result
- LibCanvas.Shapes.Rectangle.hasPoint HOT 3
- style of lineCap
- [enhancement] Add missing bower.json.
- measureText не верно рассчитывает ширину текста HOT 3
- При вызове getContext('2d-libcanvas') нет возможности передать опции HOT 1
- Ошибка отрисовки в Chrome 43 в примере Dune 2 Map: thousands objects
- npm install и webpack
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libcanvas.