This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.data'); | |
basis.require('basis.net.rpc'); | |
basis.net.rpc.extend({ | |
callback: { | |
setProcessing: function(){ | |
this.setState(basis.data.STATE.PROCESSING); | |
}, | |
setUndefined: function(){ | |
this.setState(basis.data.STATE.UNDEFINED); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.data'); | |
basis.data.DataObject = basis.data.Object; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.data'); | |
(function(){ | |
var emit_change_ = basis.data.Value.prototype.emit_change; | |
basis.data.Value.extend({ | |
updateCount: 0, | |
emit_change: function(){ | |
this.updateCount += 1; | |
emit_change_.apply(this, arguments); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.data'); | |
(function(){ | |
var set_ = basis.data.Value.prototype.set; | |
basis.data.Value.prototype.set = function(value, forceEvent){ | |
var valueBeforeSet = this.value; | |
set_.call(this, value); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.data'); | |
basis.require('basis.data.property'); | |
basis.namespace('basis.data.property').extend({ | |
AbstractProperty: basis.data.Value | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.net'); | |
basis.net.AjaxTransport.prototype.requestHeaders['X-Requested-With'] = 'XMLHttpRequest'; | |
basis.net.AjaxTransport.prototype.requestHeaders['X-Powered-By'] = 'basis.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.entity'); | |
basis.require('basis.data.index'); | |
// create type with single field, that used for EntitySet | |
var Item = basis.entity.createType('SomeType', { | |
value: Number | |
}); | |
// main Entity type | |
var DemoType = basis.entity.createType('DemoType', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ids = String( | |
this.req.param('id') || | |
this.req.param('ids') | |
).match(/(\d+)/g); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.data.value'); | |
basis.require('basis.dom'); | |
var DOM = basis.dom; | |
var BindValue = basis.data.value.BindValue; | |
var DOM_INSERT_HANDLER = function(value){ | |
DOM.insert(DOM.clear(this), value); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basis.require('basis.event'); | |
basis.require('basis.data'); | |
var datasetComputeFunctions = {}; | |
basis.data.AbstractDataset.extend({ | |
/** | |
* @param {string|Array.<string>=} events |