From 0d420ce1c2c5e2815889714dac7c083a56fba45a Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 9 Nov 2015 16:54:28 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js roojs-core.js roojs-core-debug.js roojs-ui.js roojs-ui-debug.js roojs-all.js roojs-debug.js --- roojs-all.js | 4 +- roojs-bootstrap-debug.js | 90 ++++++++-------------------------------- roojs-bootstrap.js | 9 ++-- roojs-debug.js | 56 +------------------------ roojs-ui-debug.js | 56 +------------------------ roojs-ui.js | 4 +- 6 files changed, 27 insertions(+), 192 deletions(-) diff --git a/roojs-all.js b/roojs-all.js index 2c99ed5e63..7b6cef1ae9 100644 --- a/roojs-all.js +++ b/roojs-all.js @@ -427,9 +427,7 @@ this.fireEvent("loadexception",this,o,A,o.raw.errorMsg);return;}var r=o.records, this.data.clear();this.data.addAll(r);this.totalLength=t;this.applySort();this.fireEvent("datachanged",this);}else {this.totalLength=Math.max(t,this.data.length+r.length);this.add(r);} this.fireEvent("load",this,r,A,o);if(A.callback){A.callback.call(A.scope||this,r,A,true);}},loadData:function(o,A){var r=this.reader.readRecords(o);this.loadRecords(r,{add:A},true);},getCount:function(){return this.data.length||0;},getTotalCount:function(){return this.totalLength||0;},getSortState:function(){return this.sortInfo;},applySort:function(){if(this.sortInfo&&!this.remoteSort){var s=this.sortInfo,f=s.field;var st=this.fields.get(f).sortType;var fn=function(r1,r2){var v1=st(r1.data[f]),v2=st(r2.data[f]);return v1>v2?1:(v1