Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel M committed Apr 1, 2011
1 parent d4f4171 commit fcb1209
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/placeholder-min.js

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

6 changes: 3 additions & 3 deletions Source/placeholder.js
Expand Up @@ -21,7 +21,7 @@ var RK = RK || {};
RK.InputPlaceholder = {

cssClass: 'placeholder',
inputSelector: 'input[placeholdern]',
inputSelector: 'input[placeholder]',
elements: null,
occlude: 'rk-inputplaceholder-occlude',

Expand Down Expand Up @@ -59,7 +59,7 @@ RK.InputPlaceholder = {

updateInput: function(el, focus) {

var placeholder = el.get('placeholdern'),
var placeholder = el.get('placeholder'),
value = el.get('value');

if(placeholder == value || value == '') {
Expand All @@ -72,7 +72,7 @@ RK.InputPlaceholder = {
placeholderSubmitPrevent: function() {
$$('form').addEvent('submit', function(e) {
this.getElements(inputSelector).each(function(input) {
if(input.value == input.get('placeholdern')) {
if(input.value == input.get('placeholder')) {
input.set('value', '');
}
});
Expand Down

0 comments on commit fcb1209

Please sign in to comment.