Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused method, get_side_border_padding #1169

Merged
merged 1 commit into from
Apr 26, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions chosen/chosen.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Copyright (c) 2011 by Harvest


(function() {
var $, Chosen, get_side_border_padding, root,
var $, Chosen, root,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

Expand Down Expand Up @@ -1107,11 +1107,4 @@ Copyright (c) 2011 by Harvest

root.Chosen = Chosen;

get_side_border_padding = function(elmt) {
var side_border_padding;
return side_border_padding = elmt.outerWidth() - elmt.width();
};

root.get_side_border_padding = get_side_border_padding;

}).call(this);
2 changes: 1 addition & 1 deletion chosen/chosen.jquery.min.js

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions chosen/chosen.proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Copyright (c) 2011 by Harvest


(function() {
var Chosen, get_side_border_padding, root,
var Chosen, root,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

Expand Down Expand Up @@ -1110,12 +1110,4 @@ Copyright (c) 2011 by Harvest

root.Chosen = Chosen;

get_side_border_padding = function(elmt) {
var layout, side_border_padding;
layout = new Element.Layout(elmt);
return side_border_padding = layout.get("border-left") + layout.get("border-right") + layout.get("padding-left") + layout.get("padding-right");
};

root.get_side_border_padding = get_side_border_padding;

}).call(this);
2 changes: 1 addition & 1 deletion chosen/chosen.proto.min.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions coffee/chosen.jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,3 @@ class Chosen extends AbstractChosen
string

root.Chosen = Chosen

get_side_border_padding = (elmt) ->
side_border_padding = elmt.outerWidth() - elmt.width()

root.get_side_border_padding = get_side_border_padding
7 changes: 0 additions & 7 deletions coffee/chosen.proto.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,3 @@ class Chosen extends AbstractChosen
@search_field.setStyle({'width': w + 'px'})

root.Chosen = Chosen


get_side_border_padding = (elmt) ->
layout = new Element.Layout(elmt)
side_border_padding = layout.get("border-left") + layout.get("border-right") + layout.get("padding-left") + layout.get("padding-right")

root.get_side_border_padding = get_side_border_padding