Browse Source

performance improvements to dropdown

pull/13/head
Jack Lukic 11 years ago
parent
commit
44b1ecdc44
7 changed files with 13 additions and 8 deletions
  1. 3
      build/minified/modules/dropdown.js
  2. 2
      build/minified/modules/dropdown.min.js
  3. 3
      build/packaged/modules/dropdown.js
  4. 4
      build/packaged/semantic.min.js
  5. 3
      build/uncompressed/modules/dropdown.js
  6. 3
      node/src/files/components/semantic/modules/dropdown.js
  7. 3
      src/modules/dropdown.js

3
build/minified/modules/dropdown.js

@ -115,7 +115,7 @@ $.fn.dropdown = function(parameters) {
item: {
click: function () {
click: function (event) {
var
$choice = $(this),
text = $choice.data(metadata.text) || $choice.text(),
@ -130,6 +130,7 @@ $.fn.dropdown = function(parameters) {
;
module.action.determine(text, value);
$.proxy(settings.onChange, $menu.get())(text, value);
event.stopPropagation();
}
}

2
build/minified/modules/dropdown.min.js
File diff suppressed because it is too large
View File

3
build/packaged/modules/dropdown.js

@ -115,7 +115,7 @@ $.fn.dropdown = function(parameters) {
item: {
click: function () {
click: function (event) {
var
$choice = $(this),
text = $choice.data(metadata.text) || $choice.text(),
@ -130,6 +130,7 @@ $.fn.dropdown = function(parameters) {
;
module.action.determine(text, value);
$.proxy(settings.onChange, $menu.get())(text, value);
event.stopPropagation();
}
}

4
build/packaged/semantic.min.js
File diff suppressed because it is too large
View File

3
build/uncompressed/modules/dropdown.js

@ -115,7 +115,7 @@ $.fn.dropdown = function(parameters) {
item: {
click: function () {
click: function (event) {
var
$choice = $(this),
text = $choice.data(metadata.text) || $choice.text(),
@ -130,6 +130,7 @@ $.fn.dropdown = function(parameters) {
;
module.action.determine(text, value);
$.proxy(settings.onChange, $menu.get())(text, value);
event.stopPropagation();
}
}

3
node/src/files/components/semantic/modules/dropdown.js

@ -115,7 +115,7 @@ $.fn.dropdown = function(parameters) {
item: {
click: function () {
click: function (event) {
var
$choice = $(this),
text = $choice.data(metadata.text) || $choice.text(),
@ -130,6 +130,7 @@ $.fn.dropdown = function(parameters) {
;
module.action.determine(text, value);
$.proxy(settings.onChange, $menu.get())(text, value);
event.stopPropagation();
}
}

3
src/modules/dropdown.js

@ -115,7 +115,7 @@ $.fn.dropdown = function(parameters) {
item: {
click: function () {
click: function (event) {
var
$choice = $(this),
text = $choice.data(metadata.text) || $choice.text(),
@ -130,6 +130,7 @@ $.fn.dropdown = function(parameters) {
;
module.action.determine(text, value);
$.proxy(settings.onChange, $menu.get())(text, value);
event.stopPropagation();
}
}

Loading…
Cancel
Save