Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
Applied fix outlined in Issue #83: http://code.google.com/p/calendard…
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningdb committed Jul 16, 2008
1 parent 4e928e5 commit 0a21338
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -6,13 +6,13 @@ if (Prototype.Version < "1.6") alert("Prototype 1.6.0 is required. If using ear
Element.addMethods({
purgeChildren: function(element) { $A(element.childNodes).each(function(e){$(e).remove();}); },
build: function(element, type, options, style) {
var newElement = Element.build(type, options, style);
var newElement = Element.buildAndAppend(type, options, style);
element.appendChild(newElement);
return newElement;
}
});

Element.build = function(type, options, style)
Element.buildAndAppend = function(type, options, style)
{
var e = $(document.createElement(type));
$H(options).each(function(pair) { eval("e." + pair.key + " = pair.value" ); });
Expand Down

0 comments on commit 0a21338

Please sign in to comment.