|
JavascriptCodingConventions
Coding conventions to be followed in Javascript files here.
IntroductionAll Javascript files must follow these coding conventions before they can be committed to the release project. Language Rules
Foo.prototype.bar = function() {
/* ... */
};Style RulesNaming
Formatting
Obj = {
key: "value",
key2: "value2"
};
Comments
/**
* Creates a flat icon based on the specified options in the
* {@link MarkerIconOptions} argument.
* Supported options are: width, height, primaryColor,
* shadowColor, label, labelColor, labelSize, and shape..
* @param {MarkerIconOptions} [opts]
* @return {GIcon}
*//** * @name MapIconMaker * @version 1.1 * @author Pamela Fox * @copyright (c) 2008 Pamela Fox * @fileoverview This gives you static functions for creating dynamically * sized and colored marker icons using the Charts API marker output. */ /* * 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 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ |
Sign in to add a comment

Is there a policy for dependencies? For example, if I wanted to use jQuery in my code. It seems the existing projects are standalone, which has its benefits, but so does using existing libraries.
Hi, I was told to avoid using any frameworks that could make it hard for end users to understand/modify the project. I wanted to use jQuery too!!