mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 13:26:07 +08:00
Removing unused method Stage#_onContent
...Unless there are some specific plans to return to using it, in the future.
This commit is contained in:
11
src/Stage.ts
11
src/Stage.ts
@@ -785,17 +785,6 @@ export class Stage extends Container {
|
|||||||
|
|
||||||
this._resizeDOM();
|
this._resizeDOM();
|
||||||
}
|
}
|
||||||
_onContent(typesStr, handler) {
|
|
||||||
var types = typesStr.split(SPACE),
|
|
||||||
len = types.length,
|
|
||||||
n,
|
|
||||||
baseEvent;
|
|
||||||
|
|
||||||
for (n = 0; n < len; n++) {
|
|
||||||
baseEvent = types[n];
|
|
||||||
this.content.addEventListener(baseEvent, handler, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// currently cache function is now working for stage, because stage has no its own canvas element
|
// currently cache function is now working for stage, because stage has no its own canvas element
|
||||||
cache() {
|
cache() {
|
||||||
Util.warn(
|
Util.warn(
|
||||||
|
|||||||
Reference in New Issue
Block a user