Permalink
Browse files

rename public methods

  • Loading branch information...
1 parent bf83b37 commit 6130fd1d2faaf8d99260f0ccc9fb323da0bd2e3c @fntz committed Oct 2, 2012
Showing with 4 additions and 6 deletions.
  1. +1 −2 src/prototype/dom/dom.js
  2. +3 −3 src/prototype/lang/hash.js
  3. +0 −1 test/unit/hash_test.js
View
@@ -685,8 +685,7 @@
for (var i = 0, node; node = nodes[i]; i++)
element.appendChild(node);
} else {
- element.innerHTML = '';
- element.appendChild(document.createTextNode(content.stripScripts()));
+ element.innerHTML = content.stripScripts();
}
} else {
element.innerHTML = content.stripScripts();
@@ -449,9 +449,9 @@ var Hash = Class.create(Enumerable, (function() {
return {
initialize: initialize,
_each: _each,
- each_key: each_key,
- each_value: each_value,
- each_pair: each_pair,
+ eachKey: eachKey,
+ eachValue: eachValue,
+ eachPair: eachPair,
set: set,
get: get,
unset: unset,
View
@@ -4,7 +4,6 @@ new Test.Unit.Runner({
this.assertEqual('B', h.set('b', 'B'));
this.assertHashEqual({a: 'A', b: 'B'}, h);
-
this.assertUndefined(h.set('c'));
this.assertHashEqual({a: 'A', b: 'B', c: undefined}, h);
},

0 comments on commit 6130fd1

Please sign in to comment.