Skip to content

Commit

Permalink
added the constants.js src file
Browse files Browse the repository at this point in the history
  • Loading branch information
ifandelse committed Oct 20, 2011
1 parent 1e21eb8 commit 984001e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 29 deletions.
27 changes: 13 additions & 14 deletions lib/infuser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
Version 0.1.0
*/
var NO_OP = function() { },
defaultRenderOptions = {
preRender: NO_OP,
render: function(target, template) {
if($(target).children().length === 0) {
$(target).append($(template));
}
else {
$(target).children().replaceWith($(template));
}
},
postRender: NO_OP
};
var hashStorage = {
templates: {},

Expand Down Expand Up @@ -73,20 +86,6 @@ var helpers = {
};
}
};
var NO_OP = function() { },
defaultRenderOptions = {
preRender: NO_OP,
render: function(target, template) {
if($(target).children().length === 0) {
$(target).append($(template));
}
else {
$(target).children().replaceWith($(template));
}
},
postRender: NO_OP
};

var infuser = {
storageOptions: {
hash: hashStorage,
Expand Down
Binary file modified lib/infuser.min.gz.js
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/infuser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions src/Api.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
var NO_OP = function() { },
defaultRenderOptions = {
preRender: NO_OP,
render: function(target, template) {
if($(target).children().length === 0) {
$(target).append($(template));
}
else {
$(target).children().replaceWith($(template));
}
},
postRender: NO_OP
};

var infuser = {
storageOptions: {
hash: hashStorage,
Expand Down
13 changes: 13 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var NO_OP = function() { },
defaultRenderOptions = {
preRender: NO_OP,
render: function(target, template) {
if($(target).children().length === 0) {
$(target).append($(template));
}
else {
$(target).children().replaceWith($(template));
}
},
postRender: NO_OP
};
1 change: 1 addition & 0 deletions src/infuser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//import("VersionHeader.js");
//import("constants.js");
//import("hashStorage.js");
//import("scriptStorage.js");
//import("error.js");
Expand Down

0 comments on commit 984001e

Please sign in to comment.