Browse Source

add default parser; notes

pull/563/head
David DeSandro 11 years ago
parent
commit
a80fd4dd24
  1. 8
      item.js
  2. 8
      notes.md

8
item.js

@ -48,6 +48,8 @@ Item.prototype._create = function() {
this.sortData = {}; this.sortData = {};
}; };
// TODO - move this to Isotope, so it isn't munging sorter
// for every item
Item.prototype.updateSortData = function() { Item.prototype.updateSortData = function() {
// default sorters // default sorters
this.sortData.id = this.id; this.sortData.id = this.id;
@ -125,6 +127,12 @@ function getParser( arg ) {
parser = function( val ) { parser = function( val ) {
return parseFloat( val ); return parseFloat( val );
}; };
default :
// just return val if parser isn't one of these
// TODO - console log that that parser doesn't exist
parser = function( val ) {
return val;
}
} }
return parser; return parser;
} }

8
notes.md

@ -6,4 +6,12 @@ filter
updateSortData updateSortData
layoutComplete test after
filter - hide some
filter - reveal some, some stay hidden, some are revealed, some do nothing
sort
filter, during transition filter again
provide nice error if getText doesn't provide an element
## bugs ## bugs

Loading…
Cancel
Save