| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 this._isLiveEdit = isLiveEdit; | 55 this._isLiveEdit = isLiveEdit; |
| 56 this.sourceMapURL = sourceMapURL; | 56 this.sourceMapURL = sourceMapURL; |
| 57 this.hasSourceURL = hasSourceURL; | 57 this.hasSourceURL = hasSourceURL; |
| 58 } | 58 } |
| 59 | 59 |
| 60 WebInspector.Script.Events = { | 60 WebInspector.Script.Events = { |
| 61 ScriptEdited: "ScriptEdited", | 61 ScriptEdited: "ScriptEdited", |
| 62 SourceMapURLAdded: "SourceMapURLAdded", | 62 SourceMapURLAdded: "SourceMapURLAdded", |
| 63 } | 63 } |
| 64 | 64 |
| 65 WebInspector.Script.sourceURLRegex = /\n[\040\t]*\/\/[@#]\ssourceURL=\s*(\S*?)\s
*$/mg; | 65 WebInspector.Script.sourceURLRegex = /\n[\040\t]*\/\/#\ssourceURL=\s*(\S*?)\s*$/
mg; |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * @param {string} source | 68 * @param {string} source |
| 69 * @return {string} | 69 * @return {string} |
| 70 */ | 70 */ |
| 71 WebInspector.Script._trimSourceURLComment = function(source) | 71 WebInspector.Script._trimSourceURLComment = function(source) |
| 72 { | 72 { |
| 73 return source.replace(WebInspector.Script.sourceURLRegex, ""); | 73 return source.replace(WebInspector.Script.sourceURLRegex, ""); |
| 74 } | 74 } |
| 75 | 75 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 /** | 265 /** |
| 266 * @return {boolean} | 266 * @return {boolean} |
| 267 */ | 267 */ |
| 268 isInlineScriptWithSourceURL: function() | 268 isInlineScriptWithSourceURL: function() |
| 269 { | 269 { |
| 270 return !!this.hasSourceURL && this.isInlineScript(); | 270 return !!this.hasSourceURL && this.isInlineScript(); |
| 271 }, | 271 }, |
| 272 | 272 |
| 273 __proto__: WebInspector.SDKObject.prototype | 273 __proto__: WebInspector.SDKObject.prototype |
| 274 } | 274 } |
| OLD | NEW |