mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Tool plugin architecture with eraser/pen/paintbucket tools.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
var o = $({});
|
||||
|
||||
$.subscribe = function() {
|
||||
console.log("SUBSCRIBE: " + arguments[0]);
|
||||
o.on.apply(o, arguments);
|
||||
};
|
||||
|
||||
@@ -15,7 +16,10 @@
|
||||
};
|
||||
|
||||
$.publish = function() {
|
||||
console.log("PUBLISH: " + arguments[0]);
|
||||
o.trigger.apply(o, arguments);
|
||||
};
|
||||
|
||||
}(jQuery));
|
||||
}(jQuery));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user