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
| document.activeElement | |
| document.addBinding | |
| document.addEventListener | |
| document.addEventSource | |
| document.adoptNode | |
| document.alinkColor | |
| document.all | |
| document.anchors | |
| document.appendChild | |
| document.applets |
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 $testFunk(arg1,arg2,arg3){ | |
| // this.arg1 = arg1; | |
| // this.arg2 = arg2; | |
| // this.arg3 = arg3; | |
| // }; | |
| // var shmoo = { | |
| // fred: new $testFunk(1,2,3), | |
| // fred1: new $testFunk(1,2,3), | |
| // fred2: new $testFunk(1,2,3), | |
| // fred3: new $testFunk(1,2,3) |
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
| //IE6 | |
| 'RENDERING_INTENT_ABSOLUTE_COLORIMETRIC' is null or not an object | |
| 'RENDERING_INTENT_RELATIVE_COLORIMETRIC' is null or not an object | |
| 'SVG_PRESERVEASPECTRATIO_UNKNOWN' is null or not an object | |
| 'SVG_PRESERVEASPECTRATIO_XMAXYMAX' is null or not an object | |
| 'SVG_PRESERVEASPECTRATIO_XMAXYMID' is null or not an object | |
| 'SVG_PRESERVEASPECTRATIO_XMAXYMIN' is null or not an object | |
| 'SVG_PRESERVEASPECTRATIO_XMIDYMAX' is null or not an object | |
| 'SVG_PRESERVEASPECTRATIO_XMIDYMID' is null or not an object | |
| 'SVG_PRESERVEASPECTRATIO_XMIDYMIN' is null or not an object |
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
| /* | |
| How to bind a function to an object manually | |
| */ | |
| function myFunkyFunction(){ | |
| alert(this.innerHTML); | |
| }; | |
| (function(){ | |
| var div1 = document.createElement('div'); document.body.appendChild(div1); div1.innerHTML = 'myDiv 1'; |
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
| // -*- Mode: MooTools Javascript; tab-width: 4; -*- | |
| // @require 'mootools' | |
| var MyClass = new Class({ | |
| Implements: Events, | |
| initialize: function(){ | |
| }, |
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.prototype.remember = function remember(delay,maxConcurrentRuns){ | |
| maxConcurrentRuns = maxConcurrentRuns || 1; | |
| var self = this, tim, result, block=0; | |
| function resetBlock(){ block --; }; | |
| function rememberWrapper(){ | |
| if (block < maxConcurrentRuns) { | |
| block ++; | |
| result = self.apply(this,arguments); | |
| if (delay) setTimeout(resetBlock, delay); | |
| } |
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
| // inspired by jQuery watch: http://plugins.jquery.com/files/jquery-watch.js.txt | |
| (function(){ | |
| var watch = Object.prototype.watch, | |
| unwatch = Object.prototype.unwatch, | |
| watched = [], | |
| timer; | |
| Object.watch = function(obj, prop, fn){ |
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
| // MooTools Method Wrappers | |
| var MyClass = new Class({ | |
| Implements: Bind, | |
| MethodMutators:true, | |
| initilize: function(){ | |
| this.setBinds(); |
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
| String.prototype.toRegExp = function(){ | |
| var match = this.match(/^\/(.*)\/([gimsx]{0,5})$/); | |
| console.log(match) | |
| return (match) ? new RegExp(match[1], match[2]) : new RegExp(this); | |
| } | |
| document.write("/flarm/gim" === /flarm/mig.toString());document.write('\n'); | |
| document.write("/flarm/gim".toRegExp().toString() === /flarm/mig.toString());document.write('\n'); | |
| document.write("/fl\ |
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
| // -*- Mode: MooTools Javascript; tab-width: 4; -*- | |
| // Proposed syntax. Not fully functional atm. | |
| /* | |
| EG: a menu system | |
| a menu is open while in the the menu-open state | |
| when the menu-open state is removed, the menu should be closed | |
| the menu-open state must be false 100 ms after the last mouseout even it fired | |
| */ |