sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 32434 - http://anonsvn.icesoft.org/repo / projects / bridge-support / src / main / javascript / collection.js
Unified Diff View - collection.js
/projects/bridge-support/src/main/javascript/collection.js @ revision 32433
/projects/bridge-support/src/main/javascript/collection.js @ revision 32434
@@ -35,14 +35,14 @@     return items.concat(other); }); -var append = operator($witch(function(condition) { -    condition(isArray, function(items, item) { +var append = operator(function(items, item) { +    if (isArray(items)) {         items.push(item);         return items; -    }); - -    condition(any, operationNotSupported); -})); +    } else { +        operationNotSupported(); +    } +}); var insert = operator($witch(function(condition) {     condition(isArray, function(items, item) {


feed icon

sventon 2.5.1