Skip to content

Commit 4d024f4

Browse files
committed
package
1 parent 413607a commit 4d024f4

7 files changed

Lines changed: 15 additions & 19 deletions

File tree

build/demo/kitchen-sink/kitchen-sink-uncompressed.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2772,7 +2772,7 @@ exports.hasCssString = function(id, doc) {
27722772

27732773
if (doc.createStyleSheet && (sheets = doc.styleSheets)) {
27742774
while (index < sheets.length)
2775-
if (sheets[index++].title === id) return true;
2775+
if (sheets[index++].owningElement.id === id) return true;
27762776
} else if ((sheets = doc.getElementsByTagName("style"))) {
27772777
while (index < sheets.length)
27782778
if (sheets[index++].id === id) return true;
@@ -2793,7 +2793,7 @@ exports.importCssString = function importCssString(cssText, id, doc) {
27932793
style = doc.createStyleSheet();
27942794
style.cssText = cssText;
27952795
if (id)
2796-
style.title = id;
2796+
style.owningElement.id = id;
27972797
} else {
27982798
style = doc.createElementNS
27992799
? doc.createElementNS(XHTML_NS, "style")
@@ -2939,8 +2939,7 @@ exports.getParentWindow = function(document) {
29392939
return document.defaultView || document.parentWindow;
29402940
};
29412941

2942-
});
2943-
/* ***** BEGIN LICENSE BLOCK *****
2942+
});/* ***** BEGIN LICENSE BLOCK *****
29442943
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
29452944
*
29462945
* The contents of this file are subject to the Mozilla Public License Version

build/kitchen-sink.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Ace
1313
version 0.2.0
14-
commit 9936be106d4fdf6a8debe60fd07dd880783e71e1
14+
commit 413607a991bab8489a4c8466b98ef4bc47ab32de
1515
1616
1717
-->

build/src/ace-noconflict.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/src/ace-uncompressed-noconflict.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ exports.hasCssString = function(id, doc) {
15921592

15931593
if (doc.createStyleSheet && (sheets = doc.styleSheets)) {
15941594
while (index < sheets.length)
1595-
if (sheets[index++].title === id) return true;
1595+
if (sheets[index++].owningElement.id === id) return true;
15961596
} else if ((sheets = doc.getElementsByTagName("style"))) {
15971597
while (index < sheets.length)
15981598
if (sheets[index++].id === id) return true;
@@ -1613,7 +1613,7 @@ exports.importCssString = function importCssString(cssText, id, doc) {
16131613
style = doc.createStyleSheet();
16141614
style.cssText = cssText;
16151615
if (id)
1616-
style.title = id;
1616+
style.owningElement.id = id;
16171617
} else {
16181618
style = doc.createElementNS
16191619
? doc.createElementNS(XHTML_NS, "style")
@@ -1759,8 +1759,7 @@ exports.getParentWindow = function(document) {
17591759
return document.defaultView || document.parentWindow;
17601760
};
17611761

1762-
});
1763-
/* ***** BEGIN LICENSE BLOCK *****
1762+
});/* ***** BEGIN LICENSE BLOCK *****
17641763
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
17651764
*
17661765
* The contents of this file are subject to the Mozilla Public License Version

build/src/ace-uncompressed.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ exports.hasCssString = function(id, doc) {
15921592

15931593
if (doc.createStyleSheet && (sheets = doc.styleSheets)) {
15941594
while (index < sheets.length)
1595-
if (sheets[index++].title === id) return true;
1595+
if (sheets[index++].owningElement.id === id) return true;
15961596
} else if ((sheets = doc.getElementsByTagName("style"))) {
15971597
while (index < sheets.length)
15981598
if (sheets[index++].id === id) return true;
@@ -1613,7 +1613,7 @@ exports.importCssString = function importCssString(cssText, id, doc) {
16131613
style = doc.createStyleSheet();
16141614
style.cssText = cssText;
16151615
if (id)
1616-
style.title = id;
1616+
style.owningElement.id = id;
16171617
} else {
16181618
style = doc.createElementNS
16191619
? doc.createElementNS(XHTML_NS, "style")
@@ -1759,8 +1759,7 @@ exports.getParentWindow = function(document) {
17591759
return document.defaultView || document.parentWindow;
17601760
};
17611761

1762-
});
1763-
/* ***** BEGIN LICENSE BLOCK *****
1762+
});/* ***** BEGIN LICENSE BLOCK *****
17641763
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
17651764
*
17661765
* The contents of this file are subject to the Mozilla Public License Version

build/src/ace.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/textarea/src/ace-bookmarklet.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ exports.hasCssString = function(id, doc) {
14511451

14521452
if (doc.createStyleSheet && (sheets = doc.styleSheets)) {
14531453
while (index < sheets.length)
1454-
if (sheets[index++].title === id) return true;
1454+
if (sheets[index++].owningElement.id === id) return true;
14551455
} else if ((sheets = doc.getElementsByTagName("style"))) {
14561456
while (index < sheets.length)
14571457
if (sheets[index++].id === id) return true;
@@ -1472,7 +1472,7 @@ exports.importCssString = function importCssString(cssText, id, doc) {
14721472
style = doc.createStyleSheet();
14731473
style.cssText = cssText;
14741474
if (id)
1475-
style.title = id;
1475+
style.owningElement.id = id;
14761476
} else {
14771477
style = doc.createElementNS
14781478
? doc.createElementNS(XHTML_NS, "style")
@@ -1618,8 +1618,7 @@ exports.getParentWindow = function(document) {
16181618
return document.defaultView || document.parentWindow;
16191619
};
16201620

1621-
});
1622-
/**
1621+
});/**
16231622
* based on code from:
16241623
*
16251624
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.

0 commit comments

Comments
 (0)