Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  Create bower.json
  Refactored event handlers by removing aliases. Using the on() method instead.
  • Loading branch information
needim committed May 22, 2014
2 parents 9424733 + b17131d commit 8f8d9bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "noty",
"version": "2.2.2",
"authors": [
"Nedim Arabacı"
],
"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)"
}
4 changes: 2 additions & 2 deletions js/noty/jquery.noty.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if (typeof Object.create !== 'function') {
$.each(this.options.buttons, function (i, button) {
var $button = $('<button/>').addClass((button.addClass) ? button.addClass : 'gray').html(button.text).attr('id', button.id ? button.id : 'button-' + i)
.appendTo(self.$bar.find('.noty_buttons'))
.bind('click', function () {
.on('click', function () {
if ($.isFunction(button.onClick)) {
button.onClick.call($button, self);
}
Expand Down Expand Up @@ -474,7 +474,7 @@ if (typeof Object.create !== 'function') {
buttons:false
};

$(window).resize(function () {
$(window).on('resize', function () {
$.each($.noty.layouts, function (index, layout) {
layout.container.style.apply($(layout.container.selector));
});
Expand Down
2 changes: 1 addition & 1 deletion js/noty/themes/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
marginLeft: 0
});

this.$bar.bind({
this.$bar.on({
mouseenter: function() { $(this).find('.noty_close').stop().fadeTo('normal',1); },
mouseleave: function() { $(this).find('.noty_close').stop().fadeTo('normal',0); }
});
Expand Down

0 comments on commit 8f8d9bd

Please sign in to comment.