Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions scripts/bundled-uncompressed/html4+html5/dojo.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,8 @@ if (typeof JSON !== 'object') {
var lastDocumentHash = '',
iframeId, iframe,
lastIframeHash, checkerRunning,
startedWithHash = Boolean(History.getHash());
startedWithHash = Boolean(History.getHash()),
domainSet = false;

// Handle depending on the browser
if ( History.isInternetExplorer() ) {
Expand All @@ -903,10 +904,21 @@ if (typeof JSON !== 'object') {

// Append iFrame
document.body.appendChild(iframe);


try {
iframe.contentWindow.document;
} catch(e) {
domainSet = true;
}
// Create initial history entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();

}

// Define some variables that will help in our checker function
lastIframeHash = '';
Expand Down Expand Up @@ -940,8 +952,13 @@ if (typeof JSON !== 'object') {
lastIframeHash = iframeHash = documentHash;

// Create History Entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
}

// Update the iframe's hash
iframe.contentWindow.document.location.hash = History.escapeHash(documentHash);
Expand Down
29 changes: 23 additions & 6 deletions scripts/bundled-uncompressed/html4+html5/extjs.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,8 @@ if (typeof JSON !== 'object') {
var lastDocumentHash = '',
iframeId, iframe,
lastIframeHash, checkerRunning,
startedWithHash = Boolean(History.getHash());
startedWithHash = Boolean(History.getHash()),
domainSet = false;

// Handle depending on the browser
if ( History.isInternetExplorer() ) {
Expand All @@ -873,10 +874,21 @@ if (typeof JSON !== 'object') {

// Append iFrame
document.body.appendChild(iframe);


try {
iframe.contentWindow.document;
} catch(e) {
domainSet = true;
}
// Create initial history entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();

}

// Define some variables that will help in our checker function
lastIframeHash = '';
Expand Down Expand Up @@ -910,8 +922,13 @@ if (typeof JSON !== 'object') {
lastIframeHash = iframeHash = documentHash;

// Create History Entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
}

// Update the iframe's hash
iframe.contentWindow.document.location.hash = History.escapeHash(documentHash);
Expand Down
29 changes: 23 additions & 6 deletions scripts/bundled-uncompressed/html4+html5/jquery.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,8 @@ if (typeof JSON !== 'object') {
var lastDocumentHash = '',
iframeId, iframe,
lastIframeHash, checkerRunning,
startedWithHash = Boolean(History.getHash());
startedWithHash = Boolean(History.getHash()),
domainSet = false;

// Handle depending on the browser
if ( History.isInternetExplorer() ) {
Expand All @@ -859,10 +860,21 @@ if (typeof JSON !== 'object') {

// Append iFrame
document.body.appendChild(iframe);


try {
iframe.contentWindow.document;
} catch(e) {
domainSet = true;
}
// Create initial history entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();

}

// Define some variables that will help in our checker function
lastIframeHash = '';
Expand Down Expand Up @@ -896,8 +908,13 @@ if (typeof JSON !== 'object') {
lastIframeHash = iframeHash = documentHash;

// Create History Entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
}

// Update the iframe's hash
iframe.contentWindow.document.location.hash = History.escapeHash(documentHash);
Expand Down
29 changes: 23 additions & 6 deletions scripts/bundled-uncompressed/html4+html5/mootools.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,8 @@ if (typeof JSON !== 'object') {
var lastDocumentHash = '',
iframeId, iframe,
lastIframeHash, checkerRunning,
startedWithHash = Boolean(History.getHash());
startedWithHash = Boolean(History.getHash()),
domainSet = false;

// Handle depending on the browser
if ( History.isInternetExplorer() ) {
Expand All @@ -866,10 +867,21 @@ if (typeof JSON !== 'object') {

// Append iFrame
document.body.appendChild(iframe);


try {
iframe.contentWindow.document;
} catch(e) {
domainSet = true;
}
// Create initial history entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();

}

// Define some variables that will help in our checker function
lastIframeHash = '';
Expand Down Expand Up @@ -903,8 +915,13 @@ if (typeof JSON !== 'object') {
lastIframeHash = iframeHash = documentHash;

// Create History Entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
}

// Update the iframe's hash
iframe.contentWindow.document.location.hash = History.escapeHash(documentHash);
Expand Down
29 changes: 23 additions & 6 deletions scripts/bundled-uncompressed/html4+html5/native.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,8 @@ if (typeof JSON !== 'object') {
var lastDocumentHash = '',
iframeId, iframe,
lastIframeHash, checkerRunning,
startedWithHash = Boolean(History.getHash());
startedWithHash = Boolean(History.getHash()),
domainSet = false;

// Handle depending on the browser
if ( History.isInternetExplorer() ) {
Expand All @@ -903,10 +904,21 @@ if (typeof JSON !== 'object') {

// Append iFrame
document.body.appendChild(iframe);


try {
iframe.contentWindow.document;
} catch(e) {
domainSet = true;
}
// Create initial history entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();

}

// Define some variables that will help in our checker function
lastIframeHash = '';
Expand Down Expand Up @@ -940,8 +952,13 @@ if (typeof JSON !== 'object') {
lastIframeHash = iframeHash = documentHash;

// Create History Entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
}

// Update the iframe's hash
iframe.contentWindow.document.location.hash = History.escapeHash(documentHash);
Expand Down
29 changes: 23 additions & 6 deletions scripts/bundled-uncompressed/html4+html5/right.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,8 @@ if (typeof JSON !== 'object') {
var lastDocumentHash = '',
iframeId, iframe,
lastIframeHash, checkerRunning,
startedWithHash = Boolean(History.getHash());
startedWithHash = Boolean(History.getHash()),
domainSet = false;

// Handle depending on the browser
if ( History.isInternetExplorer() ) {
Expand All @@ -860,10 +861,21 @@ if (typeof JSON !== 'object') {

// Append iFrame
document.body.appendChild(iframe);


try {
iframe.contentWindow.document;
} catch(e) {
domainSet = true;
}
// Create initial history entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();

}

// Define some variables that will help in our checker function
lastIframeHash = '';
Expand Down Expand Up @@ -897,8 +909,13 @@ if (typeof JSON !== 'object') {
lastIframeHash = iframeHash = documentHash;

// Create History Entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
}

// Update the iframe's hash
iframe.contentWindow.document.location.hash = History.escapeHash(documentHash);
Expand Down
29 changes: 23 additions & 6 deletions scripts/bundled-uncompressed/html4+html5/zepto.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,8 @@ if (typeof JSON !== 'object') {
var lastDocumentHash = '',
iframeId, iframe,
lastIframeHash, checkerRunning,
startedWithHash = Boolean(History.getHash());
startedWithHash = Boolean(History.getHash()),
domainSet = false;

// Handle depending on the browser
if ( History.isInternetExplorer() ) {
Expand All @@ -856,10 +857,21 @@ if (typeof JSON !== 'object') {

// Append iFrame
document.body.appendChild(iframe);


try {
iframe.contentWindow.document;
} catch(e) {
domainSet = true;
}
// Create initial history entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();

}

// Define some variables that will help in our checker function
lastIframeHash = '';
Expand Down Expand Up @@ -893,8 +905,13 @@ if (typeof JSON !== 'object') {
lastIframeHash = iframeHash = documentHash;

// Create History Entry
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
if(domainSet) {
iframe.setAttribute('src', 'javascript:void((function(){document.open();document.domain="'+ document.domain + '";document.close()})())');

} else {
iframe.contentWindow.document.open();
iframe.contentWindow.document.close();
}

// Update the iframe's hash
iframe.contentWindow.document.location.hash = History.escapeHash(documentHash);
Expand Down
2 changes: 1 addition & 1 deletion scripts/bundled/html4+html5/dojo.history.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/bundled/html4+html5/extjs.history.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/bundled/html4+html5/jquery.history.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/bundled/html4+html5/mootools.history.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/bundled/html4+html5/native.history.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/bundled/html4+html5/right.history.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/bundled/html4+html5/zepto.history.js

Large diffs are not rendered by default.

Loading