This file contains hidden or 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
| COMMENTS_SECRET = 'any_old_string_you_like' |
This file contains hidden or 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 given(dependencies) { | |
| return { | |
| define: function(id, module) { | |
| if (!module) { | |
| // Assume the first arg is the module | |
| module = id; | |
| id = undefined; | |
| } | |
| return define(id, dependencies, module); | |
| } |
This file contains hidden or 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 () { | |
| var blinktags = document.getElementsByTagName('blink'), len = blinktags.length, vis = 'hidden', i; | |
| if (len > 0) { | |
| setInterval(function () { | |
| for (i = 0; i < len; i++) blinktags[i].style.visibility = vis; | |
| vis = vis === 'visible' ? 'hidden' : 'visible'; | |
| }, 500); | |
| } | |
| })(); |
This file contains hidden or 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
| // A means of using underscore.js to do templates with conditionals | |
| // Inside of underscore's template, it returns a function that uses | |
| // 'with' on a variable named obj, and you can touch into that using | |
| // inline JS and <% %> wrappers | |
| // A template with conditional display of last names: | |
| var good = _.template("Hello: <%= name %> <% if (obj.lastname) { %> <%= lastname %> <% } %>"); | |
| // A template that tries to do that, but fails: | |
| var bad = _.template("Hello: <%= name %> <% if (lastname) { %> <%= lastname %> <% } %>"); |
This file contains hidden or 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
| /** | |
| * MooCrash | |
| * A MooTools plugin to crash IE6 | |
| * v0.0.1 | |
| * | |
| * Licensed under MIT license, so, y'know, feel free to take it | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * Inspired by jQuery Crash, written because @jsconf asked for it | |
| * | |
| * Extending Browser, since that seems to be the right place for it. |
NewerOlder