From ef0945fe4e1b1d1d04c786a140910f3808bd1d35 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 13 Oct 2014 15:51:14 -0400 Subject: [PATCH] Organizing some settings objects --- src/definitions/modules/dimmer.js | 2 +- src/definitions/modules/dropdown.js | 23 +++++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/definitions/modules/dimmer.js b/src/definitions/modules/dimmer.js index 180d7b96f..627347fd0 100755 --- a/src/definitions/modules/dimmer.js +++ b/src/definitions/modules/dimmer.js @@ -547,10 +547,10 @@ $.fn.dimmer.settings = { verbose : true, performance : true, + closable : true, transition : 'fade', useCSS : true, on : false, - closable : true, duration : { show : 500, diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index b5df82563..ae997a4b1 100755 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -1276,15 +1276,7 @@ $.fn.dropdown = function(parameters) { $.fn.dropdown.settings = { - name : 'Dropdown', - namespace : 'dropdown', - - debug : false, - verbose : true, - performance : true, - - type : false, - + /* Behavior */ on : 'click', action : 'activate', @@ -1301,10 +1293,19 @@ $.fn.dropdown.settings = { transition : 'slide down', duration : 250, + /* Callbacks */ onChange : function(value, text){}, onShow : function(){}, onHide : function(){}, + /* Component */ + name : 'Dropdown', + namespace : 'dropdown', + + debug : false, + verbose : true, + performance : true, + error : { action : 'You called a dropdown action that was not defined', method : 'The method you called is not defined.', @@ -1342,6 +1343,7 @@ $.fn.dropdown.settings = { }; +/* Templates */ $.fn.dropdown.settings.templates = { menu: function(select) { var @@ -1386,7 +1388,8 @@ $.fn.dropdown.settings.templates = { } }; -// Adds easing + +/* Dependencies */ $.extend( $.easing, { easeOutQuad: function (x, t, b, c, d) { return -c *(t/=d)*(t-2) + b;