Skip to content
Browse files

View, Array & Object helper

  • Loading branch information...
1 parent de75743 commit b762c5c6394f14368283a425229ea464006d8dee @vovazolotoy vovazolotoy committed Aug 18, 2011
Showing with 13 additions and 9 deletions.
  1. +12 −8 system/prototypes/johana/arr.js
  2. +1 −1 system/prototypes/johana/view.js
View
20 system/prototypes/johana/arr.js
@@ -18,13 +18,17 @@ JohanaArr = function()
* @param Object object to merge
* @return Object
*/
-JohanaArr.merge = function(destination, source){
- for (var property in source) {
- if (source.hasOwnProperty(property)) {
- destination[property] = source[property];
- }
- }
- return destination;
+JohanaArr.merge = function(destination, source)
+{
+ for (var property in source)
+ {
+ if (source.hasOwnProperty(property))
+ {
+ destination[property] = source[property];
+ }
+ }
+
+ return destination;
};
-module.exports = JohanaArr; // End
+module.exports = JohanaArr; // End
View
2 system/prototypes/johana/view.js
@@ -77,7 +77,7 @@ JohanaView.prototype.setFilename = function(file)
*
* You can also use an array to set several values at once:
*
- * // Create the values $food and $beverage in the view
+ * // Create the values food and beverage in the view
* view.set({food: 'bread', beverage: 'water'});
*
* @param String variable name or an array of variables

0 comments on commit b762c5c

Please sign in to comment.
Something went wrong with that request. Please try again.