code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * Copyright (C) 2005-2009 Alfresco Software Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. ...
JavaScript
/** * Copyright (C) 2005-2009 Alfresco Software Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. ...
JavaScript
/** * Copyright (C) 2005-2009 Alfresco Software Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * Thi...
JavaScript
YAHOO.util.Event.channels = {}; YAHOO.util.Event.subscribe = function (channelName, obj, listenMethod) { var getSubscriberMethod = function () { return function (type, args, scopeObj) { scopeObj[listenMethod].apply(scopeObj, args); } } if (!this.channels[channelName]) { this.createCh...
JavaScript
/** * Display ranking for the given runType * * @param args.runType default value = ALL */ function main() { var url = "/gwi/run/ranking.json"; var runType = args.runType; if(runType == null || runType == ""){ runType = "ALL"; } url += "?runType=" + runType; var result = remote.call(url); ...
JavaScript
/** * Display runner details from given username * @param args.username */ function main() { var url = "/gwi/run/runnerDetails.json"; var username = args.username; //TODO test username not empty if(username != null){ url += "?username=" + username; } var result = remote.call(url); if (resul...
JavaScript
//function main() //{ // //} // //main();
JavaScript
/** * Display runner history from given username and runType * @param args.username * @param args.runType */ function main() { var url = "/gwi/run/runnerHistory.json?"; var username = args.username; var runType = args.runType; if(username != null){ url += "username=" + username; } if(runType !=...
JavaScript
if (typeof SomeCo == "undefined" || !SomeCo) { var SomeCo = {}; } /** * RuleConfigActionCustom. * * @namespace SomeCo * @class SomeCo.RuleConfigActionCustom */ (function() { /** * YUI Library aliases */ var Dom = YAHOO.util.Dom, Selector = YAHOO.util.Selector, Event = YAHOO.util.Even...
JavaScript
function main() { var result = remote.connect("alfresco").get("/someco/whitepapers"); if (result.status == 200) { //data = eval('(' + result.response + ')'); //model.items = data.items; var data = eval('(' + result + ')'); model.foo = "haha"; model.whitepapers = data.whitepapers; } } main();
JavaScript
model.foo = "bar";
JavaScript
<import resource="classpath:alfresco/module/content-tutorial-repo/scripts/rating.js"> function main() { logger.log("Inside whitepapers.get.js"); var whitepapers = search.luceneSearch("PATH:\"/app:company_home/cm:Someco/*\" +TYPE:\"{http://www.someco.com/model/content/1.0}whitepaper\" +@sc\\:isActive:true"); if (whi...
JavaScript
var document = search.findNode(args.nodeRef); if (document == undefined) { status.code = 404; status.message = "NodeRef " + args.nodeRef + " not found."; status.redirect = true; } // add the aspect to this nodeRef if it needs it if (document.hasAspect("scr:rateable")) { logger.log("NodeRef already as as...
JavaScript
<import resource="classpath:alfresco/module/content-tutorial-repo/scripts/rating.js"> if (args.id == null || args.id.length == 0) { logger.log("ID arg not set"); status.code = 400; status.message = "Node ID has not been provided"; status.redirect = true; } else { logger.log("Getting current node"); var curNode =...
JavaScript
<import resource="classpath:alfresco/module/content-tutorial-repo/scripts/rating.js"> if (args.id == null || args.id.length == 0) { logger.log("ID arg not set"); status.code = 400; status.message = "Node ID has not been provided"; status.redirect = true; } else { logger.log("Getting current node"); var curNode =...
JavaScript
model.foo = "bar";
JavaScript
//calculate rating function computeAverage(childAssocRef) { var parentRef = childAssocRef.parent; // check the parent to make sure it has the right aspect if (parentRef.hasAspect("{http://www.someco.com/model/ratings/1.0}rateable")) { // continue, this is what we want } else { logger.log("Rating's pare...
JavaScript
<import resource="classpath:alfresco/module/content-tutorial-repo/scripts/rating.js"> var scriptFailed = false; // Have a look at the behaviour object that should have been passed if (behaviour == null) { logger.log("The behaviour object has not been set."); scriptFailed = true; } // Check the name of the beh...
JavaScript
<import resource="classpath:alfresco/module/content-tutorial-repo/scripts/rating.js"> var scriptFailed = false; // Have a look at the behaviour object that should have been passed if (behaviour == null) { logger.log("The behaviour object has not been set."); scriptFailed = true; } // Check the name of the beh...
JavaScript
/**************************************************************************** Copyright (c) 2011 The Wojo Group thewojogroup.com simplecartjs.com http://github.com/thewojogroup/simplecart-js/tree/master The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this sof...
JavaScript
/* ========================================================= // jquery.innerfade.js // Datum: 2008-02-14 // Firma: Medienfreunde Hofmann & Baldes GbR // Author: Torsten Baldes // Mail: t.baldes@medienfreunde.com // Web: http://medienfreunde.com // based on the work of Matt Oakes http://portfolio.gizone.co....
JavaScript
//Script by Aneesh of www.bloggerplugins.org //Released on August 19th August 2009 // Modified By Maskolis var relatedTitles = new Array(); var relatedTitlesNum = 0; var relatedUrls = new Array(); var thumburl = new Array(); function related_results_labels_thumbs(json) { for (var i = 0; i < json.feed.entry.leng...
JavaScript
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use...
JavaScript
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use...
JavaScript
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use...
JavaScript
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use...
JavaScript
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use...
JavaScript
var dataUrl = "/slingshot/doclib2/doclist/all/node/alfresco/company/home"; var result = remote.call(dataUrl); model.remoteResult = result;
JavaScript
(function() { /** * YUI Library aliases */ var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event, DDM = YAHOO.util.DragDropMgr; Alfresco.TestSearch = function TestSearch_constructor(htmlId) { Alfresco.TestSearch.superclass.constructor.call(this, "Alfresco.TestSearch", htmlId, ["jso...
JavaScript
var keyword = ""; keyword = args.keyword; var searchResults = null; if(keyword != undefined && keyword!=""){ var luceneQuery = "TEXT:\""+keyword+"\""; searchResults = search.luceneSearch(luceneQuery); } else { status.code = 400; status.message = "Keyword not provided."; status.redirect = true; } model.keyword = ke...
JavaScript
function Pager(tableName, itemsPerPage) { this.tableName = tableName; this.itemsPerPage = itemsPerPage; this.currentPage = 1; this.pages = 0; this.inited = false; this.showRecords = function(from, to) { var rows = document.getElementById(tableName).rows; // i starts ...
JavaScript
function Pager(tableName, itemsPerPage) { this.tableName = tableName; this.itemsPerPage = itemsPerPage; this.currentPage = 1; this.pages = 0; this.inited = false; this.showRecords = function(from, to) { var rows = document.getElementById(tableName).rows; // i starts ...
JavaScript
/* DHTML Snowstorm! OO-style Jascript-based Snow effect ---------------------------------------------------- Version 1.4.20091115 (Previous rev: v1.3.20081215) Code by Scott Schiller - http://schillmania.com ---------------------------------------------------- Initializes after body onload()...
JavaScript
/** * @license * * Copyright 2011 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 l...
JavaScript
/** * Creates a new level control. * @constructor * @param {IoMap} iomap the IO map controller. * @param {Array.<string>} levels the levels to create switchers for. */ function LevelControl(iomap, levels) { var that = this; this.iomap_ = iomap; this.el_ = this.initDom_(levels); google.maps.event.addList...
JavaScript
/** * Creates a new Floor. * @constructor * @param {google.maps.Map=} opt_map */ function Floor(opt_map) { /** * @type Array.<google.maps.MVCObject> */ this.overlays_ = []; /** * @type boolean */ this.shown_ = true; if (opt_map) { this.setMap(opt_map); } } /** * @param {google.maps.M...
JavaScript
// Copyright 2011 Google /** * 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 wri...
JavaScript
({ appDir: 'static', baseUrl: 'js', dir: 'static-min', paths: {jquery: 'empty:'}, modules: [ {name: 'main'}, {name: 'admin-main'} ] })
JavaScript
/** * @license r.js 2.0.2 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ /* * This is a bootstrap script to allow running RequireJS in the command line * in either a Java/Rhino or Node environ...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 i...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 i...
JavaScript
/* Copyright 2012 Google Inc. All Rights Reserved. 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 a...
JavaScript
$(document).ready(function () { $("#dialogMessage").dialog({ autoOpen: false, show: "fade", hide: "fade", closeText: "" }); $( "#createTopicDialog" ).dialog({ autoOpen: false, modal: true, closeText: "", minWidth: 400, position: "center" }); $("#userListPopup").dialog({ aut...
JavaScript
function main() { // Create XML object to pull values from // configuration file var conf = new XML(config.script); // Use the defaults from the XML configuration file title = conf.title[0].toString(); // call the repository to get the latest document...
JavaScript
/** Called automatically by JsDoc Toolkit. */ function publish(symbolSet) { publish.conf = { // trailing slash expected for dirs ext: ".html", outDir: JSDOC.opt.d || SYS.pwd+"../out/jsdoc/", templatesDir: JSDOC.opt.t || SYS.pwd+"../templates/jsdoc/", symbolsDir: "symbols/", srcDir: ...
JavaScript
/** This is the main container for the FOODOC handler. @namespace */ FOODOC = { }; /** The current version string of this application. */ FOODOC.VERSION = "1.0"; FOODOC.handle = function(srcFile, src) { LOG.inform("Handling file '" + srcFile + "'"); return [ new JSDOC.Symbol( "foo", ...
JavaScript
/** * This is the main container for the XMLDOC handler. * @namespace * @author Brett Fattori (bfattori@fry.com) * @version $Revision: 498 $ */ XMLDOC = { }; /** The current version string of this application. */ XMLDOC.VERSION = "1.0"; /** Include the library necessary to handle XML files */ IO....
JavaScript
LOG.inform("XMLDOC.DomReader loaded"); XMLDOC.DomReader = function(root) { this.dom = root; /** * The current node the reader is on */ this.node = root; /** * Get the current node the reader is on * @type XMLDOC.Parser.node */ XMLDOC.DomReader.prototype.getNode = fu...
JavaScript
LOG.inform("XMLDOC.Parser loaded"); /** * XML Parser object. Returns an {@link #XMLDOC.Parser.node} which is * the root element of the parsed document. * <p/> * By default, this parser will only handle well formed XML. To * allow the parser to handle HTML, set the <tt>XMLDOC.Parser.strictMode</tt> * va...
JavaScript
LOG.inform("XMLDOC.symbolize loaded"); /** * Convert the source file to a set of symbols */ XMLDOC.symbolize = function(srcFile, src) { LOG.inform("Symbolizing file '" + srcFile + "'"); // XML files already have a defined structure, so we don't need to // do anything but parse them. The DOM rea...
JavaScript
var TestDoc = { fails: 0, plans: 0, passes: 0, results: [] }; TestDoc.record = function(result) { TestDoc.results.push(result); if (typeof result.verdict == "boolean") { if (result.verdict === false) TestDoc.fails++; if (result.verdict === true) TestDoc.passes++; } } TestDoc.prove = function...
JavaScript
// try: java -jar ../../jsrun.jar runner.js load("TestDoc.js"); TestDoc.prove("../frame/Opt.js"); TestDoc.prove("../lib/JSDOC.js"); TestDoc.prove("../frame/String.js"); TestDoc.prove("../lib/JSDOC/DocTag.js"); TestDoc.prove("../lib/JSDOC/DocComment.js"); TestDoc.prove("../lib/JSDOC/TokenReader.js"); TestDoc...
JavaScript
load("app/frame/Dumper.js"); function symbolize(opt) { symbols = null; JSDOC.JsDoc(opt); symbols = JSDOC.JsDoc.symbolSet; } var testCases = [ function() { symbolize({a:true, p:true, _: [SYS.pwd+"test/overview.js"]}); //print(Dumper.dump(symbols)); is('symbols.getSymbolByName("My Cool Library").na...
JavaScript
/** * @fileOverview * A bootstrap script that creates some basic required objects * for loading other scripts. * @author Michael Mathews, micmath@gmail.com * @version $Id: run.js 756 2009-01-07 21:32:58Z micmath $ */ /** * @namespace Keep track of any messages from the running script. */ LOG = { w...
JavaScript
/** * @version $Id: main.js 847 2010-07-03 08:03:44Z micmath $ */ function main() { IO.include("lib/JSDOC.js"); IO.includeDir("plugins/"); // process the options // the -c option: options are defined in a configuration file if (JSDOC.opt.c) { eval("JSDOC.conf = " + IO.readFile(JSDOC.opt.c)); ...
JavaScript
JSDOC.PluginManager.registerPlugin( "JSDOC.publishSrcHilite", { onPublishSrc: function(src) { if (src.path in JsHilite.cache) { return; // already generated src code } else JsHilite.cache[src.path] = true; try { var sourceCode = IO.readFile(src.path); } catch(e) { print...
JavaScript
JSDOC.PluginManager.registerPlugin( "JSDOC.commentSrcJson", { onDocCommentSrc: function(comment) { var json; if (/^\s*@json\b/.test(comment)) { comment.src = new String(comment.src).replace("@json", ""); eval("json = "+comment.src); var tagged = ""; for (var i in json) { var t...
JavaScript
JSDOC.PluginManager.registerPlugin( "JSDOC.tagParamConfig", { onDocCommentTags: function(comment) { var currentParam = null; var tags = comment.tags; for (var i = 0, l = tags.length; i < l; i++) { if (tags[i].title == "param") { if (tags[i].name.indexOf(".") == -1) { currentPa...
JavaScript
JSDOC.PluginManager.registerPlugin( "JSDOC.symbolLink", { onSymbolLink: function(link) { // modify link.linkPath (the href part of the link) // or link.linkText (the text displayed) // or link.linkInner (the #name part of the link) } } );
JavaScript
JSDOC.PluginManager.registerPlugin( "JSDOC.functionCall", { onFunctionCall: function(functionCall) { if (functionCall.name == "dojo.define" && functionCall.arg1) { functionCall.doc = "/** @lends "+eval(functionCall.arg1)+".prototype */"; } } } );
JavaScript
JSDOC.PluginManager.registerPlugin( "JSDOC.frameworkPrototype", { onPrototypeClassCreate: function(classCreator) { var desc = ""; if (classCreator.comment) { desc = classCreator.comment; } var insert = desc+"/** @name "+classCreator.name+"\n@constructor\n@scope "+classCreator.name+".prototyp...
JavaScript
JSDOC.PluginManager.registerPlugin( "JSDOC.tagSynonyms", { onDocCommentSrc: function(comment) { comment.src = comment.src.replace(/@methodOf\b/i, "@function\n@memberOf"); comment.src = comment.src.replace(/@fieldOf\b/i, "@field\n@memberOf"); }, onDocCommentTags: function(comment) { for (var...
JavaScript
/** Handle the creation of HTML links to documented symbols. @constructor */ function Link() { this.alias = ""; this.src = ""; this.file = ""; this.text = ""; this.innerName = ""; this.classLink = false; this.targetName = ""; this.target = function(targetName) { if (defined(targetName)) this.t...
JavaScript
/** @namespace */ Opt = { /** * Get commandline option values. * @param {Array} args Commandline arguments. Like ["-a=xml", "-b", "--class=new", "--debug"] * @param {object} optNames Map short names to long names. Like {a:"accept", b:"backtrace", c:"class", d:"debug"}. * @return {object} Short names and ...
JavaScript
/** * @fileOverview * @name JsTestrun * @author Michael Mathews micmath@gmail.com * @url $HeadURL: http://jsdoc-toolkit.googlecode.com/svn/trunk/jsdoc-toolkit/app/frame/Testrun.js $ * @revision $Id: Testrun.js 418 2008-01-15 21:40:33Z micmath $ * @license <a href="http://en.wikipedia.org/wiki/MIT_License">X...
JavaScript
/** @constructor @example var _index = new Hash(); _index.set("a", "apple"); _index.set("b", "blue"); _index.set("c", "coffee"); for (var p = _index.first(); p; p = _index.next()) { print(p.key+" is for "+p.value); } */ var Hash = function() { this._map = {}; this._keys = []; this._vals...
JavaScript
_global_ = this; function Namespace(name, f) { var n = name.split("."); for (var o = _global_, i = 0, l = n.length; i < l; i++) { o = o[n[i]] = o[n[i]] || {}; } if (f) f(); }
JavaScript
/**@constructor*/ function ChainNode(object, link) { this.value = object; this.link = link; // describes this node's relationship to the previous node } /**@constructor*/ function Chain(valueLinks) { this.nodes = []; this.cursor = -1; if (valueLinks && valueLinks.length > 0) { this.push(valueLinks...
JavaScript
/** * @class <pre> This is a lightly modified version of Kevin Jones' JavaScript library Data.Dump. To download the original visit: <a href="http://openjsan.org/doc/k/ke/kevinj/Data/Dump/">http://openjsan.org/doc/k/ke/kevinj/Data/Dump/</a> AUTHORS The Data.Dump JavaScript module is written by Kevin Jone...
JavaScript
/**@constructor*/ function Reflection(obj) { this.obj = obj; } Reflection.prototype.getConstructorName = function() { if (this.obj.constructor.name) return this.obj.constructor.name; var src = this.obj.constructor.toSource(); var name = src.substring(name.indexOf("function")+8, src.indexOf('(')).replace(/ ...
JavaScript
/** @name String @class Additions to the core string object. */ /** @author Steven Levithan, released as public domain. */ String.prototype.trim = function() { var str = this.replace(/^\s+/, ''); for (var i = str.length - 1; i >= 0; i--) { if (/\S/.test(str.charAt(i))) { str = str.substring(0, i + 1...
JavaScript
/** @constructor */ JSDOC.SymbolSet = function() { this.init(); } JSDOC.SymbolSet.prototype.init = function() { this._index = new Hash(); } JSDOC.SymbolSet.prototype.keys = function() { return this._index.keys(); } JSDOC.SymbolSet.prototype.hasSymbol = function(alias) { return this._index.hasKey(al...
JavaScript
/** * @namespace * @deprecated Use {@link FilePath} instead. */ JSDOC.Util = { } /** * @deprecated Use {@link FilePath.fileName} instead. */ JSDOC.Util.fileName = function(path) { LOG.warn("JSDOC.Util.fileName is deprecated. Use FilePath.fileName instead."); var nameStart = Math.max(path.lastIndexOf...
JavaScript
/** @constructor */ JSDOC.JsPlate = function(templateFile) { if (templateFile) this.template = IO.readFile(templateFile); this.templateFile = templateFile; this.code = ""; this.parse(); } JSDOC.JsPlate.prototype.parse = function() { this.template = this.template.replace(/\{#[\s\S]+?#\}/gi, ""); t...
JavaScript
if (typeof JSDOC == "undefined") JSDOC = {}; /** @constructor */ JSDOC.DocTag = function(src) { this.init(); if (typeof src != "undefined") { this.parse(src); } } /** Create and initialize the properties of this. */ JSDOC.DocTag.prototype.init = function() { this.title = ""; this.ty...
JavaScript
if (typeof JSDOC == "undefined") JSDOC = {}; /** @constructor */ JSDOC.Token = function(data, type, name) { this.data = data; this.type = type; this.name = name; } JSDOC.Token.prototype.toString = function() { return "<"+this.type+" name=\""+this.name+"\">"+this.data+"</"+this.type+">"; } JSDOC....
JavaScript
if (typeof JSDOC == "undefined") JSDOC = {}; /** @class Search a {@link JSDOC.TextStream} for language tokens. */ JSDOC.TokenReader = function() { this.keepDocs = true; this.keepWhite = false; this.keepComments = false; } /** @type {JSDOC.Token[]} */ JSDOC.TokenReader.prototype.tokenize = function...
JavaScript
/** @namespace Holds functionality related to running plugins. */ JSDOC.PluginManager = { } /** @param name A unique name that identifies that plugin. @param handlers A collection of named functions. The names correspond to hooks in the core code. */ JSDOC.PluginManager.registerPlugin = function(/**String...
JavaScript
if (typeof JSDOC == "undefined") JSDOC = {}; /** @constructor */ JSDOC.Walker = function(/**JSDOC.TokenStream*/ts) { this.init(); if (typeof ts != "undefined") { this.walk(ts); } } JSDOC.Walker.prototype.init = function() { this.ts = null; var globalSymbol = new JSDOC.Symbol("_global_", [], "GLOBAL", new JSDO...
JavaScript
if (typeof JSDOC == "undefined") JSDOC = {}; /** @constructor */ JSDOC.TokenStream = function(tokens) { this.tokens = (tokens || []); this.rewind(); } /** @constructor @private */ function VoidToken(/**String*/type) { this.toString = function() {return "<VOID type=\""+type+"\">"}; this.is = fun...
JavaScript
/** @constructor */ JSDOC.TextStream = function(text) { if (typeof(text) == "undefined") text = ""; text = ""+text; this.text = text; this.cursor = 0; } JSDOC.TextStream.prototype.look = function(n, considerWhitespace) { if (typeof n == "undefined") n = 0; if (typeof considerWhitespace == "undefin...
JavaScript
if (typeof JSDOC == "undefined") JSDOC = {}; /** Create a new Symbol. @class Represents a symbol in the source code. */ JSDOC.Symbol = function() { this.init(); if (arguments.length) this.populate.apply(this, arguments); } JSDOC.Symbol.count = 0; JSDOC.Symbol.prototype.init = function() { this._n...
JavaScript