| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 }, | 277 }, |
| 278 | 278 |
| 279 /** | 279 /** |
| 280 * @param {!Array.<string>} propertyPath | 280 * @param {!Array.<string>} propertyPath |
| 281 * @param {function(?WebInspector.RemoteObject, boolean=)} callback | 281 * @param {function(?WebInspector.RemoteObject, boolean=)} callback |
| 282 */ | 282 */ |
| 283 getProperty: function(propertyPath, callback) | 283 getProperty: function(propertyPath, callback) |
| 284 { | 284 { |
| 285 /** | 285 /** |
| 286 * @param {string} arrayStr | 286 * @param {string} arrayStr |
| 287 * @suppressReceiverCheck |
| 287 * @this {Object} | 288 * @this {Object} |
| 288 */ | 289 */ |
| 289 function remoteFunction(arrayStr) | 290 function remoteFunction(arrayStr) |
| 290 { | 291 { |
| 291 var result = this; | 292 var result = this; |
| 292 var properties = JSON.parse(arrayStr); | 293 var properties = JSON.parse(arrayStr); |
| 293 for (var i = 0, n = properties.length; i < n; ++i) | 294 for (var i = 0, n = properties.length; i < n; ++i) |
| 294 result = result[properties[i]]; | 295 result = result[properties[i]]; |
| 295 return result; | 296 return result; |
| 296 } | 297 } |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 result = functionDeclaration.apply(target, rawArgs); | 974 result = functionDeclaration.apply(target, rawArgs); |
| 974 } catch (e) { | 975 } catch (e) { |
| 975 result = null; | 976 result = null; |
| 976 } | 977 } |
| 977 | 978 |
| 978 callback(result); | 979 callback(result); |
| 979 }, | 980 }, |
| 980 | 981 |
| 981 __proto__: WebInspector.RemoteObject.prototype | 982 __proto__: WebInspector.RemoteObject.prototype |
| 982 } | 983 } |
| OLD | NEW |