Permalink
Browse files

created a build directory and relocated smoosh config file there; rel…

…ocated the ender lib to the main directory
  • Loading branch information...
1 parent c1ddd13 commit c750a2b6396bf2b482254a26aad17e6b3048dc3f @Zhami committed Jul 28, 2011
View
@@ -1,3 +1,3 @@
require('smoosh')
- .config('./config/smoosh.json')
+ .config('./build/smoosh.json')
.run(); // runs jshint on full build
View
@@ -1,5 +1,5 @@
require('smoosh')
- .config('./config/smoosh.json')
+ .config('./build/smoosh.json')
.clean() // removes dist directory
.run() // runs jshint on full build
.build() // builds both uncompressed and compressed files
View
@@ -0,0 +1,5 @@
+{
+ "ender": "../src/ender.js",
+ "main": "../src/doml.js",
+ "name": "doml",
+}
File renamed without changes.
View
@@ -98,6 +98,12 @@
var module = { exports: {} }, exports = module.exports;
+ /*!
+ * Doml - a DOM constructor
+ * copyright Stuart Malin 2011
+ * https://github.com/zhami/doml
+ * MIT License
+ */
!function (context) {
var contextDoc, createNode, doml, Doml, Domil_orig, env, getGlobal, isArray, isNode, procArgs, procTag;
@@ -325,12 +331,12 @@
});
$.ender({
- doml: function () {
- this.forEach(function (el) {
- var element = d.create.apply(d, arguments);
- el.appendChild(element);
- })
- }
+ doml: function () {
+ var element = d.create.apply(d, arguments);
+ this.forEach(function (el) {
+ el.appendChild(d.create.call(d, element));
+ })
+ }
}, true);
$.id = function (id) {
Oops, something went wrong.
@@ -5,7 +5,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../node_modules/sink-test/src/sink.css" type="text/css">
<script src="../node_modules/sink-test/src/sink.js"></script>
- <script src="./ender.js"></script>
+ <script src="../ender.js"></script>
<script src="./ender-tests.js"></script>
</head>
<body>

0 comments on commit c750a2b

Please sign in to comment.