Skip to content

Commit 8f8d9bd

Browse files
committed
Merge branch 'develop'
* develop: Create bower.json Refactored event handlers by removing aliases. Using the on() method instead.
2 parents 9424733 + b17131d commit 8f8d9bd

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

bower.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "noty",
3+
"version": "2.2.2",
4+
"authors": [
5+
"Nedim Arabacı"
6+
],
7+
"description": "noty is a jQuery plugin that makes it easy to create alert - success - error - warning - information - confirmation messages as an alternative the standard alert dialog. Each notification is added to a queue. (Optional)"
8+
}

js/noty/jquery.noty.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ if (typeof Object.create !== 'function') {
7777
$.each(this.options.buttons, function (i, button) {
7878
var $button = $('<button/>').addClass((button.addClass) ? button.addClass : 'gray').html(button.text).attr('id', button.id ? button.id : 'button-' + i)
7979
.appendTo(self.$bar.find('.noty_buttons'))
80-
.bind('click', function () {
80+
.on('click', function () {
8181
if ($.isFunction(button.onClick)) {
8282
button.onClick.call($button, self);
8383
}
@@ -474,7 +474,7 @@ if (typeof Object.create !== 'function') {
474474
buttons:false
475475
};
476476

477-
$(window).resize(function () {
477+
$(window).on('resize', function () {
478478
$.each($.noty.layouts, function (index, layout) {
479479
layout.container.style.apply($(layout.container.selector));
480480
});

js/noty/themes/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
marginLeft: 0
7878
});
7979

80-
this.$bar.bind({
80+
this.$bar.on({
8181
mouseenter: function() { $(this).find('.noty_close').stop().fadeTo('normal',1); },
8282
mouseleave: function() { $(this).find('.noty_close').stop().fadeTo('normal',0); }
8383
});

0 commit comments

Comments
 (0)