🧙♀️
Related to Wiki Article: http://aloha-editor.org/wiki/Migration_to_jQuery_UI
And Aloha Editor DevCon Talk: http://www.livestream.com/alohaeditor/video?clipId=pla_7219285e-1723-430b-84ae-5190e3d3004f&utm_source=lslibrary&utm_medium=ui-thumb
Copyright Aloha Editor Team. Romain and Benjamin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# == Name | |
# cli - Aloha Editor's Command Line Interface | |
# | |
# == Synopsis | |
# Refer to the README file for usage | |
# | |
# == Options | |
# -h, --help Displays help message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# == Name | |
# cli - Aloha Editor's Command Line Interface | |
# | |
# == Synopsis | |
# Refer to the README file for usage | |
# | |
# == Options | |
# -h, --help Displays help message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Our Page Action | |
public function pageAction ( ) { | |
// Prepare our variables for our view | |
// ... | |
// Handle our view | |
return $this->awesomeRender('page.html'); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window,undefined){ | |
// Prepare our Variables | |
var | |
document = window.document, | |
$ = window.jQuery; | |
// Wait for Document | |
$(window).bind(function(){ | |
// Prepare Variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Safari Hash ReplaceState History Traversal Bug</title> | |
</head> | |
<body> | |
<p>This demo demonstrates an issue with Safari 5.0.4 (6533.20.27) handing of hashes and replace state. When a hash is set, and then replaced using replaceState the history list are then broken, when traversing back the hash does not change.</p> | |
<p>Note: The issue requires a clean history list, as such this should always be opened in a new tab/window where there are no prior history items.</p> | |
<p>Reported by <a href="http://balupton.com">Benjamin Lupton</a> author of <a href="http://github.com/balupton/history.js">History.js</a></p> | |
<button id="bug">bug</button> | |
<button id="workaround">workaround</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window,undefined){ | |
// Load Helpers | |
var | |
intervalScript, intervalJquery, | |
loadScript = function(scriptUrl){ | |
var e = document.createElement('script'); | |
e.setAttribute('src',scriptUrl); | |
window.document.body.appendChild(e); | |
return e; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Counter Store for Original Functions | |
var originalFunctions = {}, originalFunctionCounter = 0; | |
// Secure a Client to Server Object | |
var serialise = function(args){ | |
// Prepare | |
var | |
functionKeys = {}, | |
result = {}, | |
functionAlias = function(){ |