Comparing version 0.1.8 to 0.1.10
14
b2.js
@@ -1,2 +0,2 @@ | ||
// B2.js 0.1.6 | ||
// B2.js 0.1.10 | ||
@@ -156,2 +156,7 @@ // (c) 2014-2015 Percy Zhang | ||
component._parentView = this; | ||
if (B2.rootViews[component.cid]) { | ||
delete B2.rootViews[component.cid]; | ||
} | ||
component._componentName = name; | ||
@@ -466,7 +471,8 @@ component._uuid = _.uniqueId(); | ||
delete this._parentView; | ||
} else { | ||
// no parent view, which means its a root component which is created by new BackboneView directly. | ||
delete B2.rootViews[this.cid]; | ||
} | ||
if (B2.rootViews[this.cid]) { | ||
delete B2.rootViews[this.cid]; | ||
} | ||
Backbone.View.prototype.remove.apply(this, arguments); | ||
@@ -473,0 +479,0 @@ }, |
{ | ||
"name": "b2", | ||
"version": "0.1.8", | ||
"version": "0.1.10", | ||
"description": "A super lightweight framework based on backbone.js", | ||
@@ -5,0 +5,0 @@ "main": "b2.js", |
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
88852
674