cavalion-blocks
Advanced tools
Comparing version 0.9.16 to 0.9.17
@@ -0,1 +1,4 @@ | ||
### 2020-08-15 - 0.9.17 | ||
- Introducing ! syntax | ||
### 2020-07-30 - 0.9.16 | ||
@@ -2,0 +5,0 @@ - Updating prototypes |
{ | ||
"name": "cavalion-blocks", | ||
"version": "0.9.16", | ||
"version": "0.9.17", | ||
"description": "`blocks-dot-js` `[].js`", | ||
@@ -5,0 +5,0 @@ "main": "README.js", |
"use locale, js, blocks/Blocks"; | ||
/*- | ||
vars("uri") - specifies specific uri, if not present: | ||
this.getSpecializer(); + this._name | ||
*/ | ||
var locale = window.locale; | ||
@@ -13,6 +20,14 @@ var js = require("js"); | ||
var me = this, cls = this.getSpecializer(); | ||
var uri = this.vars("uri"); | ||
var uri = this.vars("uri"), specializer; | ||
if(this._control === null && (cls || uri)) { | ||
this._control = B.instantiate([uri || String.format("%s<%s>", cls, this._name)], { | ||
uri: uri || String.format("%s<%s>", cls.split(":").pop(), this._name), | ||
if(cls) cls = cls.split("!"); | ||
if(cls.length > 1) { | ||
specializer = cls.pop(); | ||
cls = cls.join("!"); | ||
} else { | ||
specializer = this._name; | ||
} | ||
this._control = B.instantiate([uri || String.format("%s<%s>", cls, specializer)], { | ||
uri: uri || String.format("%s<%s>", cls.split(":").pop(), specializer), | ||
owner: this, setIsRoot: true, | ||
@@ -19,0 +34,0 @@ loaded: function(control) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70870
1700