This file contains hidden or 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
<!doctype html> | |
<html> | |
<body> | |
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" style="position: fixed; width: 100%; height: 100%"> | |
<text x="0" y="81" fill="black" stroke="black" font-size="100">A!</text> | |
</svg> | |
</body> | |
</html> |
This file contains hidden or 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
{ | |
"json": ".bowerrc", | |
"directory": "lib", | |
"name": "my-project", | |
"version": "1.0.0", | |
"dependencies": { | |
"basisjs": "0.9.0" | |
} | |
} |
This file contains hidden or 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 hidden or 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'); | |
basis.require('basis.net'); | |
basis.net.AbstractRequest.extend({ | |
stateOnAbort: basis.data.STATE.ERROR, | |
emit_abort: function(){ | |
this.emit_failure(); | |
basis.event.events.abort.call(this); | |
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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', { |
OlderNewer