this.addObserver(this, 'data', this.dataChanged.bind(this));
},
- load: function() {
- if (this.get('state') == 'empty') {
+ load: function(force) {
+ if (force || this.get('state') == 'empty') {
this.set('state', 'loading');
$.ajax({
url: this.serverURL,
this.serverURL = serverURL;
},
- load: function() {
- if (this.get('state') == 'empty') {
+ load: function(force) {
+ if (force || this.get('state') == 'empty') {
this.set('state', 'loading');
$.ajax({
url: this.serverURL,
this.pages = [];
},
- load: function() {
- if (this.get('state') == 'empty') {
+ load: function(force) {
+ if (force || this.get('state') == 'empty') {
this.set('state', 'loading');
$.ajax({
url: this.serverURL,
$('.xmlview', this.element).height(height);
},
- reload: function() {},
+ reload: function() {
+ this.model.load(true);
+ },
editorDidLoad: function(editor) {
$(editor.frame).css({width: '100%', height: '100%'});