Permalink
Browse files

Informer : replace update with modify

  • Loading branch information...
1 parent ae13a41 commit 5607f0228d5d6dd067926886774b93316bbdc37a @sotty sotty committed Aug 8, 2012
@@ -38,8 +38,9 @@ when
stylesList contains "readonly" || stylesList contains "readonly-inherited" )
)
then
- $item.addPresentationStyle("readonly-inherited");
- update($item);
+ modify ( $item ) {
+ addPresentationStyle("readonly-inherited");
+ }
end
rule "propagate readonly from group to question"
@@ -54,8 +55,9 @@ when
stylesList contains "readonly" || stylesList contains "readonly-inherited" )
)
then
- $item.addPresentationStyle("readonly-inherited");
- update($item);
+ modify ( $item ) {
+ addPresentationStyle("readonly-inherited");
+ }
end
@@ -72,8 +74,9 @@ when
stylesList contains "readonly" || stylesList contains "readonly-inherited" )
)
then
- $item.removePresentationStyle("readonly-inherited");
- update($item);
+ modify ( $item ) {
+ removePresentationStyle("readonly-inherited");
+ }
end
rule "remove readonly from group to question"
@@ -88,14 +91,11 @@ when
stylesList contains "readonly" || stylesList contains "readonly-inherited" )
)
then
- $item.removePresentationStyle("readonly-inherited");
- update($item);
+ modify ( $item ) {
+ removePresentationStyle("readonly-inherited");
+ }
end
-
-
-
-

0 comments on commit 5607f02

Please sign in to comment.