Skip to content

Commit 7facba7

Browse files
committed
Fix: Custom container was return a dom object #53
1 parent d52461c commit 7facba7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

demo/customContainer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
theme: 'default'
6868
});
6969

70-
// console.log('html: '+n.options.id);
70+
console.log('html: '+n.options.id);
7171
}
7272

7373
function generateAll() {

js/noty/jquery.noty.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,8 @@ if (typeof Object.create !== 'function') {
283283

284284
// This is for custom container
285285
$.fn.noty = function(options) {
286-
return this.each(function() {
287-
options.custom = $(this);
288-
return $.notyRenderer.init(options);
289-
});
286+
options.custom = $(this);
287+
return $.notyRenderer.init(options);
290288
};
291289

292290
$.noty = {};

0 commit comments

Comments
 (0)