remove unused var, fix fixme

This commit is contained in:
rolux 2013-12-09 02:28:42 +01:00
parent 70bd7afd67
commit daa77eec5c

View file

@ -304,8 +304,7 @@ Ox.SplitPanel = function(options, self) {
that.size = function(id, size, callback) {
// one can pass index instead of id
var index = Ox.isNumber(id) ? id : getIndexById(id),
element = self.options.elements[index],
animate = {};
element = self.options.elements[index];
if (arguments.length == 1) {
return element.element[self.dimensions[0]]() * !that.isCollapsed(index);
} else {
@ -320,7 +319,7 @@ Ox.SplitPanel = function(options, self) {
(id) -> <o> The SplitPanel
id <s|i> The element's id or index
@*/
// FIXME: isn't 'toggle' reserved by jQuery?
// FIXME: 'toggle' is reserved by jQuery
that.toggle = function(id) {
// one can pass index instead of id
if (self.toggling) {