can-construct
Advanced tools
Comparing version
@@ -5,2 +5,6 @@ "use strict"; | ||
var namespace = require('can-namespace'); | ||
var canSymbol = require("can-symbol"); | ||
var inSetupSymbol = canSymbol.for("can.initializing"); | ||
//!steal-remove-start | ||
@@ -296,2 +300,8 @@ if(process.env.NODE_ENV !== 'production') { | ||
}); | ||
Object.defineProperty(inst, inSetupSymbol, { | ||
configurable: true, | ||
enumerable: false, | ||
value: true, | ||
writable: true | ||
}); | ||
args = inst.setup.apply(inst, arguments); | ||
@@ -302,2 +312,3 @@ if (args instanceof Construct.ReturnValue){ | ||
inst.__inSetup = false; | ||
inst[inSetupSymbol] = false; | ||
} | ||
@@ -304,0 +315,0 @@ // Call `init` if there is an `init` |
{ | ||
"name": "can-construct", | ||
"version": "3.5.3", | ||
"version": "3.5.4", | ||
"description": "easy constructor functions", | ||
@@ -40,3 +40,4 @@ "homepage": "http://canjs.com", | ||
"can-reflect": "^1.16.1", | ||
"can-string": "<2.0.0" | ||
"can-string": "<2.0.0", | ||
"can-symbol": "^1.6.4" | ||
}, | ||
@@ -43,0 +44,0 @@ "devDependencies": { |
47775
0.62%1173
0.77%5
25%+ Added