Download:
child 9:37c62f83c546
parent 7:94520aac0370
8:216800922816
Anton Shestakov <engored@ya.ru>, Sun, 17 Nov 2013 14:58:18 +0900
Lensy.configure().

1 файлов изменено, 5 вставок(+), 1 удалений(-) [+]
jquery.lensy.js file | annotate | diff | comparison | revisions
--- a/jquery.lensy.js Sat Nov 16 22:57:57 2013 +0900
+++ b/jquery.lensy.js Sun Nov 17 14:58:18 2013 +0900
@@ -3,13 +3,17 @@
function Lensy(element, options) {
this.$select = $(element);
- this.settings = $.extend({}, $.fn.lensy.defaults, options);
+ this.configure(options);
this.build();
this.bindEvents();
}
Lensy.prototype = {
+ configure: function(options) {
+ this.settings = $.extend({}, $.fn.lensy.defaults, options);
+ },
+
build: function() {
this.$filter = $('<input>')
.attr('type', 'text')