Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove some code

  • Loading branch information...
commit b96225976a940b71229077f9a9ea99555807a1b5 1 parent ef9e010
@bmcmahen authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 index.js
View
13 index.js
@@ -108,7 +108,7 @@ Cast.prototype.reset = function(attr, fn){
Cast.prototype.add = function(attr, fn){
if (type(attr) !== 'array') attr = [attr];
- for (var i = 0, len = attr.length; i < len; i++){
+ for (var i = 0; i < attr.length; i++){
var key = fn ? fn(attr[i]) : this.uniqueId('c');
var val = new Block(attr[i], this);
this.collection.set(key, val);
@@ -193,7 +193,12 @@ Cast.prototype.center = function(options){
, left = mx + (c * (w + pw))
, top = (r * h) + (r + 1) * ph;
- model.set({ 'left': left, 'top': top, 'width': w, 'height': h });
+ model.set({
+ 'left': left,
+ 'top': top,
+ 'width': w,
+ 'height': h
+ });
});
var t = this.collection.length();
var wrapperHeight = Math.ceil(t / bpr) * (h + ph) + ph;
@@ -239,10 +244,6 @@ Cast.prototype.dynamic = function(options){
return this;
};
-Cast.prototype.determineHeight = function(){
-//return (Math.ceil(totalNumber / bpr)) * (boxHeight * paddingHeight);
-};
-
Cast.prototype.sortBy = function(field, invert){
invert = invert || 1;
this.collection.sort(function(left, right){
Please sign in to comment.
Something went wrong with that request. Please try again.