Comparing version 0.4.1 to 0.4.2
@@ -17,3 +17,3 @@ var Binding = require("./binding"), | ||
// static properties/methods | ||
Temple.VERSION = "0.4.1"; | ||
Temple.VERSION = "0.4.2"; | ||
Temple.util = util; | ||
@@ -20,0 +20,0 @@ Temple.Events = require("./events"); |
@@ -14,3 +14,3 @@ var Binding = require("./binding"), | ||
if (parentNode != null && !util.isNodeAtDOMPosition(this.node, parentNode, beforeNode)) { | ||
parentNode.insertBefore(this.node, beforeNode); | ||
this.insertNode(parentNode, beforeNode); | ||
} | ||
@@ -20,3 +20,3 @@ | ||
else if (parentNode == null && this.node.parentNode != null) { | ||
this.node.parentNode.removeChild(this.node); | ||
this.removeNode(); | ||
} | ||
@@ -28,2 +28,10 @@ | ||
insertNode: function(parent, before) { | ||
parent.insertBefore(this.node, before); | ||
}, | ||
removeNode: function() { | ||
this.node.parentNode.removeChild(this.node); | ||
}, | ||
prop: function(name, value) { | ||
@@ -30,0 +38,0 @@ if (util.isObject(name) && value == null) { |
{ | ||
"name": "templejs", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "A modern JavaScript view framework.", | ||
@@ -26,14 +26,15 @@ "author": "Beneath the Ink <info@beneaththeink.com>", | ||
"dependencies": { | ||
"trackr": "~1.0.1" | ||
"trackr": "~1.0.3" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.5", | ||
"grunt-browserify": "~3.3.0", | ||
"grunt-browserify": "~3.5.0", | ||
"grunt-contrib-clean": "~0.6.0", | ||
"grunt-contrib-uglify": "~0.7.0", | ||
"grunt-contrib-uglify": "~0.8.0", | ||
"grunt-contrib-watch": "~0.6.1", | ||
"grunt-wrap2000": "~0.1.0", | ||
"chai": "~2.0.0", | ||
"chai": "~2.1.0", | ||
"minimist": "~1.1.0", | ||
"mocha": "~2.1.0" | ||
"mocha": "~2.1.0", | ||
"underscore": "~1.8.2" | ||
}, | ||
@@ -40,0 +41,0 @@ "license": "MIT", |
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
38265
1061
10
Updatedtrackr@~1.0.3