cavalion-blocks
Advanced tools
Comparing version 0.9.9 to 0.9.11
@@ -0,1 +1,8 @@ | ||
### 2019-11-29 - 0.9.11 | ||
- Introducing new classes | ||
### 2019-11-25 - 0.9.10 | ||
- Fixing auto-uri-ing blocks created via B.instantiate() | ||
- Local overrides? | ||
### 2019-08-21 - 0.9.9 | ||
@@ -2,0 +9,0 @@ - Enhancements in order to use require() with relative paths, kindof: |
{ | ||
"name": "cavalion-blocks", | ||
"version": "0.9.9", | ||
"version": "0.9.11", | ||
"description": "`blocks-dot-js` `[].js`", | ||
@@ -5,0 +5,0 @@ "main": "README.js", |
@@ -361,8 +361,9 @@ define(function(require) { | ||
var factory = new Factory(require, uri || "", sourceUri, options.setIsRoot || false); | ||
var factory = new Factory(require, uri || source[0] || "", sourceUri, options.setIsRoot || false); | ||
var p = new Promise(function(resolve, reject) { | ||
factory.load(source, function() { | ||
//resolve.apply(this, arguments); | ||
try { | ||
resolve(factory.newInstance(owner, uri, options)); | ||
var root = factory.newInstance(owner, uri, options); | ||
if(typeof root.update === "function") root.update(); | ||
resolve(root); | ||
} catch(e) { | ||
@@ -369,0 +370,0 @@ reject(e); |
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
61073
31
1530