chainable .on/.off and Layer.(before/after)Draw. closes #279

This commit is contained in:
Alexander Ruliov
2013-03-15 01:07:35 +03:00
parent 5c590bb88f
commit 9b5d33325d
2 changed files with 4 additions and 0 deletions

View File

@@ -96,6 +96,7 @@
*/
beforeDraw: function(func) {
this.beforeDrawFunc = func;
return this;
},
/**
* set after draw handler
@@ -105,6 +106,7 @@
*/
afterDraw: function(func) {
this.afterDrawFunc = func;
return this;
},
/**
* get layer canvas

View File

@@ -74,6 +74,7 @@
handler: handler
});
}
return this;
},
/**
* remove event bindings from the node. Pass in a string of
@@ -112,6 +113,7 @@
delete this.eventListeners[baseEvent];
}
}
return this;
},
/**
* remove child from container, but don't destroy it