Changeset 180916 in webkit
- Timestamp:
- Mar 2, 2015 7:58:53 PM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r180913 r180916 1 2015-03-02 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Remove native extensions now built-in 4 https://bugs.webkit.org/show_bug.cgi?id=142203 5 6 Reviewed by Timothy Hatcher. 7 8 * UserInterface/Base/Utilities.js: 9 1 10 2015-03-02 Joseph Pecoraro <pecoraro@apple.com> 2 11 -
trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js
r180624 r180916 585 585 }); 586 586 587 Object.defineProperty(String.prototype, "startsWith",588 {589 value: function(string)590 {591 return this.lastIndexOf(string, 0) === 0;592 }593 });594 595 Object.defineProperty(String.prototype, "endsWith",596 {597 value: function(string)598 {599 var position = this.length - string.length;600 if (position < 0)601 return false;602 return this.indexOf(string, position) === position;603 }604 });605 606 587 Object.defineProperty(String.prototype, "hash", 607 588 {
Note: See TracChangeset
for help on using the changeset viewer.