Devin complete

This commit is contained in:
Harry Bomrah committed 2012-04-11 15:34:19 +08:00
commit edf6089e0c
24 files changed
+470 -41

No files matched your search

+13
View File
@@ -43,4 +43,17 @@ var orbitDesktopAPI = function(){
.delay(time)
.animate({top:-n_height,opacity:0},200);
};
this.executeFunc = function(func,callbackFn){
func.call(this);
if(callbackFn){
callbackFn.call(this,func);
}
};
this.sortJSON = function(field, reverse, primer){
var key = function (x) {return primer ? primer(x[field]) : x[field]};
return function (a,b) {
var A = key(a), B = key(b);
return ((A < B) ? -1 : (A > B) ? +1 : 0) * [-1,1][+!!reverse];
}
}
};