Defect #585 ยป behavior.patch
src/com/servoy/plugins/WebClientProvider.java (working copy) | ||
---|---|---|
142 | 142 |
if (getApp().getPageContributor().getBehavior(BehaviorProvider.CALLBACK_BEHAVIOR) == null) { |
143 | 143 |
behavior = new BehaviorProvider(getApp()); |
144 | 144 |
} |
145 |
else |
|
146 |
{ |
|
147 |
behavior = (BehaviorProvider)getApp().getPageContributor().getBehavior(BehaviorProvider.CALLBACK_BEHAVIOR); |
|
148 |
} |
|
145 | 149 |
return behavior; |
146 | 150 |
} |
147 | 151 |
return null; |
... | ... | |
152 | 156 |
if (getApp().getPageContributor().getBehavior(JSONBehavior.CALLBACK_BEHAVIOR) == null) { |
153 | 157 |
jsonBehavior = new JSONBehavior(getApp()); |
154 | 158 |
} |
159 |
else |
|
160 |
{ |
|
161 |
jsonBehavior = (JSONBehavior)getApp().getPageContributor().getBehavior(JSONBehavior.CALLBACK_BEHAVIOR); |
|
162 |
} |
|
155 | 163 |
return jsonBehavior; |
156 | 164 |
} |
157 | 165 |
return null; |
... | ... | |
162 | 170 |
if (getApp().getPageContributor().getBehavior(XMLBehavior.CALLBACK_BEHAVIOR) == null) { |
163 | 171 |
xmlBehavior = new XMLBehavior(getApp()); |
164 | 172 |
} |
173 |
else |
|
174 |
{ |
|
175 |
xmlBehavior = (XMLBehavior)getApp().getPageContributor().getBehavior(XMLBehavior.CALLBACK_BEHAVIOR); |
|
176 |
} |
|
165 | 177 |
return xmlBehavior; |
166 | 178 |
} |
167 | 179 |
return null; |