Merge pull request #2165 from Newbrict/master
clipped trailing whitespace
This commit is contained in:
commit
cec6779003
4 changed files with 11 additions and 15 deletions
|
|
@ -51,7 +51,7 @@ function foo() {
|
||||||
|
|
||||||
function inject(options, callback) {
|
function inject(options, callback) {
|
||||||
var baseUrl = options.baseUrl || "../../src-noconflict";
|
var baseUrl = options.baseUrl || "../../src-noconflict";
|
||||||
|
|
||||||
var load = function(path, callback) {
|
var load = function(path, callback) {
|
||||||
var head = document.getElementsByTagName('head')[0];
|
var head = document.getElementsByTagName('head')[0];
|
||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
|
|
@ -87,7 +87,7 @@ function inject(options, callback) {
|
||||||
// Call the inject function to load the ace files.
|
// Call the inject function to load the ace files.
|
||||||
var textAce;
|
var textAce;
|
||||||
inject({}, function () {
|
inject({}, function () {
|
||||||
// Transform the textarea on the page into an ace editor.
|
// Transform the textarea on the page into an ace editor.
|
||||||
var t = document.querySelector("textarea");
|
var t = document.querySelector("textarea");
|
||||||
textAce = ace.require("ace/ext/textarea").transformTextarea(t);
|
textAce = ace.require("ace/ext/textarea").transformTextarea(t);
|
||||||
setTimeout(function(){textAce.setDisplaySettings(true)});
|
setTimeout(function(){textAce.setDisplaySettings(true)});
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
body {
|
body {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#editor {
|
#editor {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
alert("Ace Rocks " + items[i]);
|
alert("Ace Rocks " + items[i]);
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
|
|
||||||
<script src="src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
|
<script src="src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script>
|
<script>
|
||||||
var editor = ace.edit("editor");
|
var editor = ace.edit("editor");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 2010, Ajax.org B.V.
|
* Copyright (c) 2010, Ajax.org B.V.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
* * Redistributions of source code must retain the above copyright
|
* * Redistributions of source code must retain the above copyright
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* * Neither the name of Ajax.org B.V. nor the
|
* * Neither the name of Ajax.org B.V. nor the
|
||||||
* names of its contributors may be used to endorse or promote products
|
* names of its contributors may be used to endorse or promote products
|
||||||
* derived from this software without specific prior written permission.
|
* derived from this software without specific prior written permission.
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
|
@ -65,7 +65,7 @@ var _define = function(module, deps, payload) {
|
||||||
_define.modules = {};
|
_define.modules = {};
|
||||||
_define.payloads = {};
|
_define.payloads = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
_define.payloads[module] = payload;
|
_define.payloads[module] = payload;
|
||||||
_define.modules[module] = null;
|
_define.modules[module] = null;
|
||||||
};
|
};
|
||||||
|
|
@ -160,7 +160,7 @@ var lookup = function(parentId, moduleName) {
|
||||||
function exportAce(ns) {
|
function exportAce(ns) {
|
||||||
var require = function(module, callback) {
|
var require = function(module, callback) {
|
||||||
return _require("", module, callback);
|
return _require("", module, callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
var root = global;
|
var root = global;
|
||||||
if (ns) {
|
if (ns) {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ body {
|
||||||
margin:0;
|
margin:0;
|
||||||
padding:0;
|
padding:0;
|
||||||
background-color:#e6f5fc;
|
background-color:#e6f5fc;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
H2, H3, H4 {
|
H2, H3, H4 {
|
||||||
|
|
@ -58,7 +58,7 @@ PRE{
|
||||||
position:relative;
|
position:relative;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
background: url(images/background.png) repeat-x 0 0;
|
background: url(images/background.png) repeat-x 0 0;
|
||||||
border-bottom:1px solid #c9e8fa;
|
border-bottom:1px solid #c9e8fa;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header .content .signature {
|
#header .content .signature {
|
||||||
|
|
@ -224,7 +224,3 @@ UL.menu-footer LI A {
|
||||||
UL.menu-footer LI A:hover {
|
UL.menu-footer LI A:hover {
|
||||||
text-decoration:underline;
|
text-decoration:underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue