mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
d7044dc44d
Partial cleanup of piskel: new events and constant move palette and color picker in ToolSelector create Notifcation.js and move user message in it create LocalStorageService and move LS stuff in it
26 lines
476 B
JavaScript
26 lines
476 B
JavaScript
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
|
|
* http://benalman.com/
|
|
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
|
|
|
|
(function($) {
|
|
|
|
var o = $({});
|
|
|
|
$.subscribe = function() {
|
|
//console.log("SUBSCRIBE: " + arguments[0]);
|
|
o.on.apply(o, arguments);
|
|
};
|
|
|
|
$.unsubscribe = function() {
|
|
o.off.apply(o, arguments);
|
|
};
|
|
|
|
$.publish = function() {
|
|
//console.log("PUBLISH: " + arguments[0]);
|
|
o.trigger.apply(o, arguments);
|
|
};
|
|
|
|
}(jQuery));
|
|
|
|
|