Skip to content

Commit

Permalink
Set value unless undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
@soyjavi committed Mar 25, 2014
1 parent 9858a58 commit b65dff8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# QuoJS 3.0.0
# QuoJS 3.0.2
### Micro #JavaScript Library for Mobile Devices

## QuoJS?
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "QuoJS",
"version": "3.0.0",
"version": "3.0.2",
"description": "Micro #JavaScript Library for Mobile Devices.",
"homepage": "http://quojs.tapquo.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion source/quo.element.coffee
Expand Up @@ -60,7 +60,7 @@ do ($$ = Quo) ->
@param {string} Name of data attribute
###
$$.fn.val = (value) ->
if value
if value?
@each -> @value = value.toString()
else
if @length > 0 then @[0].value else null
Expand Down

0 comments on commit b65dff8

Please sign in to comment.