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
komodo.assertMacroVersion(3); | |
if (komodo.view) { komodo.view.setFocus(); } | |
Find_ReplaceAllInMacro(window, 0, 'dojoAttachEvent', 'data-dojo-attach-event', false, 0, 0, false, false); | |
Find_ReplaceAllInMacro(window, 0, 'dojoAttachPoint', 'data-dojo-attach-point', false, 0, 0, false, false); | |
Find_ReplaceAllInMacro(window, 0, 'dojoType', 'data-dojo-type', false, 0, 0, false, false); |
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
komodo.assertMacroVersion(3); | |
if (komodo.view) { komodo.view.setFocus(); } | |
ko.views.manager.currentView.scimoz.beginUndoAction(); | |
var str = ko.views.manager.currentView.scimoz.selText; | |
str = str.replace(/\"/g, "'"); | |
komodo.view.selection = str; | |
ko.views.manager.currentView.scimoz.endUndoAction(); |
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
var declare = function(){ | |
var | |
args = Array.prototype.slice.call(arguments) | |
constructors = [], | |
protos = []; | |
for(var i = 0; i < args.length; i++){ | |
if( typeof args[i] === 'function'){ | |
console.log(' fn', args[i].prototype.constructor); | |
constructors.push(args[i]); |
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(b){ | |
// NOTE: "b" is the main library, "bv" (BetterVideo) | |
var cons = {}, aListeners = {}; | |
var fns = []; | |
var theOne; | |
var topics = {}; | |
var d_topics = {}; | |
var DEFAULT_TIMER = 30; | |
var WKADJUST = (b.is_chrome && b.is_chrome()) ? -20 : -120; // don't break if sniff.js is not incl |
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
require([ | |
"dojo/Deferred" | |
], function(Deferred){ | |
var useError = 0 ; | |
var getError = function(name, useThisError){ | |
var msg = name + ' error'; | |
return useError || useThisError | |
? |
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
myArray.sort(function(a,b){ | |
// compare a and b | |
}); |