Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

optimised return value lines to a single statement

  • Loading branch information...
commit 9a6b2055b92167b5ddcc572b56c4511993132247 1 parent 61aa813
@DimitarChristoff authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 Source/Element/Element.Data.js
View
5 Source/Element/Element.Data.js
@@ -48,10 +48,7 @@ requires:
this.store('dataCollection', data)
}
- if (!property)
- return data
-
- return data[formatDataProperty(property)] || null
+ return property ? data[formatDataProperty(property)] || null : data
}
})
}()
Please sign in to comment.
Something went wrong with that request. Please try again.