Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_pushNewView: function(newView) {
if (!newView) {
return Promise.resolve();
}
var child = this._liquidChildFor(newView),
promise = new Promise(function(resolve) {
child._resolveInsertion = resolve;
});
this.pushObject(child);
return promise;
},