objectcreation


Snippet Details

Shortcut
object
Description
Codeausschnitt für die korrekte Erstellung eines globalen Objektes.
Language
JavaScript
Types
Expansion
Author
Fabian Seiffert
Upload on
11/15/2016 11:58:56 AM
Downloads
524

Declarations

ID ToolTip Default
objName Name des Objektes ObjectName
jQuery Einbindung von jQuery jQuery,
jQ Einbindung von jQuery $,

Code Output

        var $objName$ = $objName$ || {};

				(function(window,$jQuery$ exports, undefined) {
					'use strict';
					
					exports.myGlobalFunction = function(params) {
					return params;
				};
			})(window,$jQ$ $objName$);
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages