code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
Archetype.i18n = {}
Archetype.i18n.toto = "titi";
| JavaScript |
Archetype.useArchetypeClass = true;
Archetype.classOverride = true;
var $break = { };
var $identity = function(x) {return x;};
Class = {};
Object.extend = jQuery.extend;
Object.clone = function(object) {
return Object.extend({}, object);
};
Object.isArray = function(object) {
return object != nu... | JavaScript |
//$E = function(/*DOM Element*/ element) { return element};
//$A = function(/*Array*/ array) { return array};
//$H = function(/*HashMap*/ hash) { return hash};
//$S = function(/*String*/ string) { return string};
/** Deep extend **/
Object.deepExtend = function() {
// copy reference to target object
var targ... | JavaScript |
/**
*
* This part of the code come from the script.aculo.us wiki:
* http://wiki.script.aculo.us/scriptaculous/show/ExtendClassFurther
* This function is loaded after prototype to overload Class.create
*/
/**
* @namespace Archetype.Class
* @param {Object} proto
*/
Archetype.Class={
// Creators
... | JavaScript |
/**
* Defines an abstract logger that does nothing but no error when called :)
* @namespace Archetype.Loggers.AbstractLogger
* @namespace Archetype.Loggers.NullLogger
* @author temsa
*/
Archetype.Loggers.AbstractLogger = {
initialize: _,
name: Archetype.Logger,
log: _,
debug: _,
warn: _,
er... | JavaScript |
/**
* @author swiip_mat
*/
/**
* This logger is full of breaks.
* Can be usefull for step by step or testing on very poor client.
* @namespace Archetype.Loggers.AlertLogger
*/
Archetype.Loggers.AlertLogger = {
initialize: function() {},
log: function() {
var content=$A(arguments).toArray().join(" ");
aler... | JavaScript |
/**
* Defines an logger that appends the log at the end of the body of the page.<br>
* quite messy, not well coded (inline style :'( ), but pretty efficient to debug notably on IE
* @namespace Archetype.Loggers.PiDebuggerLogger
* @author swiip_mat
*/
Archetype.Loggers.PiDebuggerLogger = {
initialize: _,
in... | JavaScript |
/**
* @author temsa
*/
(function() {
var hasJustConsoleLog = typeof console != "undefined" && console && console.log && !$exist(console.debug);
if (typeof console == "undefined") {
console = {
log :_,
debug :_,
warn :_,
error :_,
fatal :_
... | JavaScript |
/**
* NitobibugLogger
* @see http://www.nitobi.com/
* @namespace Archetype.Loggers.NitobibugLogger
* @author swiip_mat
*/
Archetype.Loggers.NitobibugLogger = {
initialize : function(){
nitobi.Debug.init();
},
log: function() {
nitobi.Debug.log($A(arguments).toArray(), "lightgrey");
... | JavaScript |
/**
* Defines a null logger for production environment.<br>
* No log will be displayed.
* @namespace Archetype.Loggers.NullLogger
* @author temsa
*/
Archetype.Loggers.NullLogger = Archetype.Loggers.AbstractLogger;
| JavaScript |
/**
* Defines an logger that appends the log at the end of the body of the page.<br>
* quite messy, not well coded (inline style :'( ), but pretty efficient to debug notably on IE
* @namespace Archetype.Loggers.BodyLogger
* @author swiip_mat
*/
Archetype.Loggers.BodyLogger = {
initialize: function() {},
log: fu... | JavaScript |
/**
* Event Mixins
* (c) 2006 Seth Dillingham <seth.dillingham@gmail.com>
*
* This software is hereby released into the public domain. Do with it as
* you please, but with the understanding that it is provided "AS IS" and
* without any warranty of any kind.
*
* (But I'd love to be told about where... | JavaScript |
/**
* Event Tracer (singleton class)
* (c) 2006 Seth Dillingham <seth.dillingham@gmail.com>
*
* This software is hereby released into the public domain. Do with it as
* you please, but with the understanding that it is provided "AS IS" and
* without any warranty of any kind.
*
* (But I'd love to b... | JavaScript |
//Initialize events
if(Archetype.useEvents) {
var span = document.createElement('span');
span.id = "ArchetypeEventTechnicalLinksContainer";
$(span).setStyle({display: "none"});
document.body.insertBefore(span, document.body.firstChild);
Object.extend(Archetype, Event.Publisher);
Object.extend(Archet... | JavaScript |
/**
* @static Archetype.Definitions.Joiner
* Joiner is a way to wait for several Asynchronous events and then send a Callback
*/
$N("Archetype.Definitions.Joiner",{
/**
* Creates a new Joiner
* @param {Array of String} keys to identify
* @param {Function} callback
* @param {Boolean... | JavaScript |
/**
* @constructor Archetype.Tools.URL
*/
$N("Archetype.Tools.URL", Archetype.Class.create({
initialize: function (_urlString) {
return this.parse(_urlString);
},
parse: function(_urlString) {
this.urlString = _urlString || window.location.href;
var uriArray = $A(this.urlString.m... | JavaScript |
$N("Archetype.methodBuilders",{});
/**
* @class MethodManager
*
* Manage Method Builders to apply to a Archetype.Component Definition
*/
MethodManager = Archetype.Class.create(
/** @scope MethodManager.prototype */
{
/**
* Set up a Method Manager
*/
initialize: function() {
if(typeof Arch... | JavaScript |
/**
* @author temsa
* Describes the Standard Component Interface
* @class Archetype.component.graphicalComponent
* @name Archetype.component.graphicalComponent
* @extends Archetype.component.abstractComponent
*/
Archetype.Component.create(
/**
* @scope Archetype.component.graphicalComponent.prototype
... | JavaScript |
/**
* @author Swiip
* Describes the Standard Component Interface for a graphical with multiple view component
* @class Archetype.component.multiViewComponent
* @name Archetype.component.multiViewComponent
* @extends Archetype.component.multiViewComponent
*/
Archetype.Component.create(["Archetype.componen... | JavaScript |
//set useful namespaces
$N("Archetype.Components", $H());
/**
* @class Archetype.Component
* Class for loading components
*/
$C = Archetype.Component = Archetype.Class.singleton(
/**
* @scope Archetype.Component.prototype
*/
{
_storeDefinition: function(/*basic HashMap*/ definitionWithPa... | JavaScript |
/**
* @author temsa
* @name Archetype.component.historyComponent
* @class Archetype.component.historyComponent
* Describes the Standard Component Interface
*/
Archetype.Component.create(
/** @scope Archetype.component.historyComponent.prototype */
{
/**
* Name of the component.
* Your component wil... | JavaScript |
/**
* @namespace Archetype.methodBuilders.eventListeners
* Automatic event Listener for your component. Just add a "on" prefix to a method for it to
* automatically listen for the event named after this prefix.
*
* The listener will get the event in first parameter, and can get the data posted by the event
* with... | JavaScript |
/**
* @namespace Archetype.methodBuilders.logger
* Add a log4J like logger to the component
*/
$N("Archetype.methodBuilders.logger", {
regexp:"^.*$",
/**
* Acts on the Archetype.Component definition method methodName (that matches "this.regexp")
*
* @param {Archetype.ComponentDefinition} component... | JavaScript |
/**
* @namespace Archetype.methodBuilders.observe
* Add a specialized "Event.observe" method wish store listening information
* in order to be disconnected when the component is destroyed.
*/
$N("Archetype.methodBuilders.observe", {
regexp:"^observe$",
/**
* Acts on the Archetype.Component definition method me... | JavaScript |
/**
* Basic method Builder used to differentiate public & private variable based on their name.
* All methods are bound to their object (this will always be the objects "this", even in a event listener)
*
* @namespace Archetype.methodBuilders.public_private
*/
$N("Archetype.methodBuilders.public_private", {
regex... | JavaScript |
/**
* @namespace Archetype.methodBuilders.eventSenders
* Automatic event Sender for your component.<br>
* It's a convenient way to send an event with arguments without using the event API.<br>
*
* The original method isn't called so Prototype.emptyfunction, it's alias _ , or any empty function
* should do the tri... | JavaScript |
$N("Archetype.ComponentDefinitions",$H());
/**
* @author temsa
* @name Archetype.component.abstractComponent
* @class Archetype.component.abstractComponent
* Describes the Standard Component Interface
*/
Archetype.ComponentDefinitions.set("Archetype.component.abstractComponent",
/** @scope Archetype.component.abs... | JavaScript |
Archetype.Templates.EjsTemplate = Archetype.Class.create({
initialize: function(template) {
this.templateObject = new EJS({text: template});
},
evaluate: function(object) {
return this.templateObject.render(object);
}
}); | JavaScript |
Archetype.Templates.TrimpathTemplate = Archetype.Class.create({
initialize: function(template) {
this.templateObject = TrimPath.parseTemplate(template);
},
evaluate: function(object) {
return this.templateObject.process(object);
}
}); | JavaScript |
Archetype.Templates.TalTemplate = Archetype.Class.create({
initialize: function(template) {
this.container=document.createElement("div");
this.container.style.display='none';
document.body.appendChild(this.container);
this.container.innerHTML=template;
},
evaluate: fun... | JavaScript |
Archetype.Templates.NullTemplate = Archetype.Class.create({
initialize: function(template) {
Logger.warn(arguments);
this.template = template;
},
evaluate: function(object) {
return this.template;
}
}); | JavaScript |
Archetype.TemplatesLoaded = $H();
Archetype.Templates = {
AbstractTemplate: Archetype.Class.create({
initialize: _,
evaluate: _
})
}
Object.extend(Archetype.Templates, {
require: function(/*Array*/ modules, /*function*/ callback, /*Constructor*/ templateSystem) {
Archetype.require(modules, {
... | JavaScript |
/*
json.js
2007-08-19
Public Domain
This file adds these methods to JavaScript:
array.toJSONString(whitelist)
boolean.toJSONString()
date.toJSONString()
number.toJSONString()
object.toJSONString(whitelist)
string.toJSONString()
These methods... | JavaScript |
/*
Copyright (c) 2007 Brian Dillard and Brad Neuberg:
Brian Dillard | Project Lead | bdillard@pathf.com | http://blogs.pathf.com/agileajax/
Brad Neuberg | Original Project Creator | http://codinginparadise.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat... | JavaScript |
/** The JSON class is copyright 2005 JSON.org. */
Array.prototype.______array = '______array';
var JSON = {
org: 'http://www.JSON.org',
copyright: '(c)2005 JSON.org',
license: 'http://www.crockford.com/JSON/license.html',
stringify: function (arg) {
var c, i, l, s = '', v;
switch (typ... | JavaScript |
/**
* jQuery.Collection
* Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com
* Licensed under GPL license (http://www.opensource.org/licenses/gpl-license.php).
* Date: 1/28/2008
*
* @projectDescription Extensible and inheritable jQuery-like collections
* @author Ariel Flesler
* @version 1.0.3
... | JavaScript |
(function ( $ ) {
var methods = {
// $([1,2,3]).collect(function() { return this * this }) // => [1, 4, 9]
collect: function(enumerable, callback) {
var result = [];
$.each(enumerable, function(index) {
result.push(callback.call(this, index));
});
return result;
},
// ... | JavaScript |
(function(){
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
* $Rev: 5685 $
*/
// Map over jQuery in case of overwrite
var _jQu... | JavaScript |
/**
* pi.debugger <http://pi-js.googlecode.com>
* v1.0a
* 27.03.2008, 5:44 AM ~ 1.04.2007 21:32
* Azer Koçulu <http://azer.kodfabrik.com>
*/
if(pi.env.ie){
function XPathResult(){};
}
pi.dbgr = {
env:{ "init":false, "ctmp":[], "dIndex":0, "dNames":["console","html","css","dom","about"], "consoleType":1, "multi... | JavaScript |
(function(scope){
/*
# PI JAVASCRIPT LIBRARY (FULL&UNCOMPRESSED VERSION)
#
# VERSION HISTORY:
# -> V1 Alpha 21.03.2008 01:18
# -> V0.1 Alpha-Comet Version 11.03.2008 21:47
#
# DEVELOPMENT
# Azer Koçulu <http://azer.kodfabrik.com>
# http://pi-js.googlecode.com
*/
scope.pi = Object(3.14159265358979... | JavaScript |
/**
* TrimPath Template. Release 1.0.38.
* Copyright (C) 2004, 2005 Metaha.
*
* TrimPath Template is licensed under the GNU General Public License
* and the Apache License, Version 2.0, as follows:
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General... | JavaScript |
// Singleton class TooltipWindow
// This class works with special className. The tooltip content could be in your HTML page as an hidden element or
// can be retreive by an AJAX call.
//
// To work, You just need to set two class name on elements that should show tooltips
// - One to say to TooltipManager that this ele... | JavaScript |
// Copyright (c) 2006 Sébastien Gruhier (http://xilinus.com, http://itseb.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the ... | JavaScript |
var commandHistory;
var historyIndex;
function showExtendedDebug() {
if (debugWindow != null) {
hideDebug();
}
if (debugWindow == null) {
commandHistory = new Array();
historyIndex = 0;
debugWindow = new Window('debug_window', {className: 'dialog',width:250, height:100, right:4, minWidth:250, bott... | JavaScript |
var debugWindow = null;
function debug(text, reverse) {
if (debugWindow == null)
return;
time = "-"; //new Date();
if (reverse) {
$('debug').innerHTML = time + " " + text + "<br>"+ $('debug').innerHTML;
debugWindow.getContent().scrollTop=0;
}
else {
$('debug').innerHTML += time + " " + text + "<br>";
... | JavaScript |
// Copyright (c) 2006 Sébastien Gruhier (http://xilinus.com, http://itseb.com)
// YOU MUST INCLUDE window.js BEFORE
//
// Object to store hide/show windows status in a cookie
// Just add at the end of your HTML file this javascript line: WindowStore.init()
WindowStore = {
doSetCookie: false,
cookieName: "__window_... | JavaScript |
Effect.ResizeWindow = Class.create();
Object.extend(Object.extend(Effect.ResizeWindow.prototype, Effect.Base.prototype), {
initialize: function(win, top, left, width, height) {
this.window = win;
this.window.resizing = true;
var size = win.getSize();
this.initWidth = parseFloat(size.width);
... | JavaScript |
/*
* Copyright Joachim Zobel
*
* You can consider TAL MIT style licensed. Do with it as you like,
* but don't blame me for anything evil that TAL code does and
* do not remove my name.
*
*/
TAL = {
parse: function TALparse(container, params) {
return TAL.process(container, params, co... | JavaScript |
// script.aculo.us unittest.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005-2007 Jon Tirsen (http://www.tirsen.com)
// (c) 2005-2007 Michael Schuerig (http://www.schuerig.de/michael/)
//
// script.aculo.us i... | JavaScript |
// script.aculo.us slider.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
// Copyright (c) 2005-2007 Marty Haught, Thomas Fuchs
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
if (!Control) var Control = { };
... | JavaScript |
// script.aculo.us sound.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Based on code created by Jules Gravinese (http://www.webveteran.com/)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// ... | JavaScript |
// script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software")... | JavaScript |
// script.aculo.us builder.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
va... | JavaScript |
// package system gunk.
try{
dojo.provide("doh.runner");
}catch(e){
if(!this["doh"]){
doh = {};
}
}
//
// Utility Functions and Classes
//
doh.selfTest = false;
doh.global = this;
doh.hitch = function(/*Object*/thisObject, /*Function|String*/method /*, ...*/){
var args = [];
for(var x=2; x<arguments.length;... | JavaScript |
if(this["dojo"]){
dojo.provide("doh._rhinoRunner");
}
doh.debug = print;
// Override the doh._report method to make it quit with an
// appropriate exit code in case of test failures.
(function(){
var oldReport = doh._report;
doh._report = function(){
oldReport.apply(doh, arguments);
if(this._failureCount > 0 ... | JavaScript |
if(window["dojo"]){
dojo.provide("doh._browserRunner");
}
// FIXME: need to add prompting for monkey-do testing
// FIXME: need to implement progress bar
// FIXME: need to implement errors in progress bar
(function(){
if(window.parent == window){
// we're the top-dog window.
// borrowed from Dojo, etc.
var by... | JavaScript |
if(window["dojo"]){
dojo.provide("doh.robot");
dojo.experimental("doh.robot");
dojo.require("doh.runner");
}else if(!doh["robot"]){
doh.robot={};
}
if(!doh.robot["_robotLoaded"]){
(function(){
// loading state
var _robot = null;
var isSecure = (function(){
var key = Math.random();
return function(fcn){
... | JavaScript |
/*--------------------------------------------------------------------------
* EJS - Embedded JavaScript, version 0.1.0
* Copyright (c) 2007 Edward Benson
* http://www.edwardbenson.com/projects/ejs
* ------------------------------------------------------------------------
*
* EJS is freely distributable unde... | JavaScript |
//
// Copyright (c) 2008 Nitobi Software Inc (alexei.white@nitobi.com)
// http://www.nitobi.com
//
// For questions or suggestions email Alexei White directly.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software... | JavaScript |
/**
* Test jQueryEngine
* @author Francois de Metz
*/
doh.registerGroup("tests.Engine",[
function testToQueryParamsWithOneParam() {
var test = "archetype=rocks".toQueryParams();
doh.assertEqual("rocks", test.archetype);
},
function testToQueryParamsWithTwoParam() {
var test = "ar... | JavaScript |
window.NeededNeedsSimpleDependencie=true; | JavaScript |
Logger.log("testFile.js is here"); | JavaScript |
window.NeedsSimpleDependencie=true; | JavaScript |
/**
* @author temsa
*/
doh.registerGroup("tests.require",[
function testAsynchronousRequireWithSimpleUrlStoringForHTML() {
var d = new doh.Deferred();
var storage={};
storage[Archetype.path + "Archetype/unitTest/data/helloWorld.html"]=null;
Archetype.require("Archetype/unitTest... | JavaScript |
/**
* @author swiip
* Describes the First Component
*/
$C.create({
name:"Archetype.unitTest.components.testComponent",
/**
* Set up the Component dependencies
* The component won't launch main() unless
* every dependencies in the setup are available
*/
setup: {
dependencies: {
compon... | JavaScript |
/**
* @author swiip
* Describes the First Component
*/
$C.create({
name:"Archetype.unitTest.components.testComponentCallback",
/**
* Set up the Component dependencies
* The component won't launch main() unless
* every dependencies in the setup are available
*/
setup: {
dependencies: {
... | JavaScript |
/**
* @author swiip
* Describes the First Component
*/
$C.create(["Archetype.unitTest.components.testComponent"],{
name:"Archetype.unitTest.components.testExtendedComponent",
/**
* Set up the Component dependencies
* The component won't launch main() unless
* every dependencies in the setup are ... | JavaScript |
/**
* @author temsa
*/
doh.registerGroup("tests.components",[
function testRequireComponentWithCallback() {
var d = new doh.Deferred();
var url = $U("Archetype.unitTest.components.testComponent");
var callbackParameter=null;
var checkCondition = function() {
doh.as... | JavaScript |
/**
* @fileoverview Test Archetype.addJs
*/
(function() {
var scripts = [];
function setup () {
scripts = [];
Archetype.scriptElement = {
parentNode : {
appendChild : function(script){
scripts.push(script);
}
}
... | JavaScript |
/**
* Test jQueryEngine
* @author Francois de Metz
*/
doh.registerGroup("tests.Logger",[
function testRetrieveParameters() {
function log() {
var args = Archetype.Loggers.AbstractLogger._getArgs();
doh.assertEqual(4, args.length);
doh.assertEqual("[myFunction]", args[... | JavaScript |
/**
* Default JavaScript Framework engine for the whole application
*
* Existing choices :
* - prototype (Prototype 1.6)
* - jQuery (jQuery 1.3)
*/
Archetype.engine = "jQuery";
/**
* Default logger for the whole application
*
* Existing choices :
* - alert : use basic JavaScript alert function, beware this i... | JavaScript |
/**
* Default JavaScript Framework engine for the whole application
*
* Existing choices :
* - prototype (Prototype 1.6)
* - jQuery (jQuery 1.3)
*/
Archetype.engine = "jQuery";
/**
* Default logger for the whole application
*
* Existing choices :
* - alert : use basic JavaScript alert function, beware this i... | JavaScript |
var BOSH_SERVICE = '/http-bind/';
var connection = null;
function log(msg)
{
console.log(document.createTextNode(msg));
}
function rawInput(data)
{
log('RECV: ' + data);
}
function rawOutput(data)
{
log('SENT: ' + data);
}
function onConnect(status)
{
if (status == Strophe.Status.CONNECTING) {
log... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
var XmppRoom = Class.create({
initialize: function() {
//TODO
},
onerror: function() {
//TODO
},
onpresence: function() {
//TODO
},
onmessage: function() {
/... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
var XmppClient = Class.create({
serverName: null,
wsUrl: null,
socket: null,
initialize: function(_wsUrl, _serverName) {
this.serverName = _serverName;
this.wsUrl = _wsUrl;
},
onopen:... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
var Socket = Class.create({
websocket: null,
wsUrl: null,
initialize: function( _wsUrl) {
this.wsUrl = _wsUrl;
},
onopen: function(event) {
$(this).fire('XmppWebSocket::open', event... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
// A modified version of bitmap.js from http://rest-term.com/archives/2566/
var Class = {
create : function() {
var properties = arguments[0];
function self() {
this.initialize.apply(this, arguments);
}
for(var i in properties) {
self.prototype[i] = properties[i];
}
if(!self.proto... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
Base.js, version 1.1
Copyright 2006-2007, Dean Edwards
License: http://www.opensource.org/licenses/mit-license.php
*/
var Base = function() {
// dummy
};
Base.extend = function(_instance, _static) { // subclass
var extend = Base.prototype.extend;
// build the prototype
Base._prototyping = true;
var proto... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | JavaScript |
/*
* QUnit - A JavaScript Unit Testing Framework
*
* http://docs.jquery.com/QUnit
*
* Copyright (c) 2009 John Resig, Jörn Zaefferer
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*/
(function(window) {
var QUnit = {
// Initialize the configuration options
init: funct... | JavaScript |
/**
JSZip - A Javascript class for generating Zip files
<http://jszip.stuartk.co.uk>
(c) 2009 Stuart Knightley <stuart [at] stuartk.co.uk>
Licenced under the GPLv3 and the MIT licences
Usage:
zip = new JSZip();
zip.add("hello.txt", "Hello, World!").add("tempfile", "nothing");
zip.folder("images").add("smile... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.