Last change
on this file since 443 was
443,
checked in by hendrikvanantwerpen, 12 years ago
|
Reorganized for Node --- the SVN gods hate us all!
Lost all historical info on moved files, because SVN is a f *.
Also we have Node now, serving both the static content and forwarding
database requests.
|
File size:
442 bytes
|
Rev | Line | |
---|
[443] | 1 | define(['dojo/_base/lang'],function(lang){ |
---|
| 2 | |
---|
| 3 | Function.prototype.compose = function(g) { |
---|
| 4 | var f = this; |
---|
| 5 | return function(){ |
---|
| 6 | return f(g.apply(arguments)); |
---|
| 7 | }; |
---|
| 8 | }; |
---|
| 9 | |
---|
| 10 | function modPropIf(object,prop,pred,map) { |
---|
| 11 | var value = object[prop]; |
---|
| 12 | if ( pred(value) ) { |
---|
| 13 | object[prop] = map(value); |
---|
| 14 | } |
---|
| 15 | return object; |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | return { |
---|
| 19 | modPropIf: modPropIf |
---|
| 20 | }; |
---|
| 21 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.