Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9021

Re: How to unSet a Model bound to core?

$
0
0

Hi Chidan

 

 

Here is a test.

  var text = new sap.ui.commons.TextField({    value : '{test>/value}'  });  text.placeAt('content');  var model = new sap.ui.model.json.JSONModel();  model.setData({value: 'abc'});  text.setModel(model, 'test');    // remove model after one second  setTimeout(function() {    text.setModel(null, 'test');    delete model;    text.unbindProperty('value'); // this is unexpected, i thought it is unbind itself  }, 1000);

 

 

 

-D


Viewing all articles
Browse latest Browse all 9021

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>