|
@@ -66,6 +66,7 @@ function js_load_something(){
|
|
|
//
|
|
|
*****************************************************************************/
|
|
|
|
|
|
+//Module means some component (need only to draw);
|
|
|
var test_vue_module = new Module("nothing", "smartUsers");
|
|
|
test_vue_module.drawData = function (data) {
|
|
|
test_vue_app.data.userlist.pop();
|
|
@@ -76,7 +77,8 @@ test_vue_module.drawData = function (data) {
|
|
|
|
|
|
var loader = new (function(){
|
|
|
|
|
|
- this.userListServ = new DataObjectService("smartUsers", AUTO, "");
|
|
|
+ /* this is the main data service that is auto-updating your data*/
|
|
|
+ this.userListServ = new DataObjectService("smartUsers", AUTO, "?ext=1");
|
|
|
|
|
|
// Optional for setting up self-defined interval
|
|
|
// this.userListServ.autoInterval = 300;
|
|
@@ -94,7 +96,7 @@ var loader = new (function(){
|
|
|
* loadOften : to auto-load some data
|
|
|
*/
|
|
|
this.loadOften = function(){
|
|
|
- // Intervals
|
|
|
+ // Binding Intervals to DataService
|
|
|
this.userListServ.bind(function (data) {
|
|
|
// auto call
|
|
|
test_vue_module.setData(data);
|