diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b1960e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +output/ \ No newline at end of file diff --git a/ChristmasTree/src/common/tree.js b/ChristmasTree/src/common/tree.js index f238c4b..ccba441 100644 --- a/ChristmasTree/src/common/tree.js +++ b/ChristmasTree/src/common/tree.js @@ -6,7 +6,7 @@ // @require jquery-1.9.1.min.js // ==/UserScript== -var $ = window.$.noConflict(true); // Required for Opera and IE +var $ = window.$.noConflict(true); // Required for IE var tree = $(document.createElement('img')).attr({ src: 'http://kangoextensions.com/misc/tree.png', diff --git a/GmailChecker/src/common/main.js b/GmailChecker/src/common/main.js index ad173e1..933c0c2 100644 --- a/GmailChecker/src/common/main.js +++ b/GmailChecker/src/common/main.js @@ -38,7 +38,7 @@ GmailChecker.prototype = { kango.xhr.send(details, function(data) { if (data.status == 200 && data.response != null) { var count = 0; - var matches = data.response.match(/(\d+)<\/fullcount>/); // Old IE versions doensn't support getElementsByTagNameNS, so we using RegExp + var matches = data.response.match(/(\d+)<\/fullcount>/); // Old IE versions don't support getElementsByTagNameNS, so we have to use RegExp if (matches != null && matches.length > 0) { count = matches[1]; } diff --git a/NotificationsDemo/src/common/main.js b/NotificationsDemo/src/common/main.js index 56b5d97..98f6ae3 100644 --- a/NotificationsDemo/src/common/main.js +++ b/NotificationsDemo/src/common/main.js @@ -1,24 +1,7 @@ var counter = 0; kango.ui.browserButton.addEventListener(kango.ui.browserButton.event.COMMAND, function(event) { - var notification = kango.ui.notifications.createNotification('Title', 'Notification number ' + (++counter), 'http://kangoextensions.com/images/logos/kango.png'); - - var x = 0; - notification.addEventListener(notification.event.CLICK, function() { - if (x == 2) { - notification.close(); - } - x++; + kango.ui.notifications.show('Title', 'Notification number ' + (++counter), 'http://kangoextensions.com/images/logos/kango.png', function() { kango.console.log('Notification click'); }); - - notification.addEventListener(notification.event.SHOW, function() { - kango.console.log('Notification show'); - }); - - notification.addEventListener(notification.event.CLOSE, function() { - kango.console.log('Notification close'); - }); - - notification.show(); }); \ No newline at end of file