You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pp...@apache.org on 2013/08/26 17:33:49 UTC

[15/52] [abbrv] [cordova-tizen] tizen SDK 2.2 support

http://git-wip-us.apache.org/repos/asf/cordova-tizen/blob/e21e0780/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/libs/jquery.tmpl.js
----------------------------------------------------------------------
diff --git a/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/libs/jquery.tmpl.js b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/libs/jquery.tmpl.js
new file mode 100644
index 0000000..fa4f269
--- /dev/null
+++ b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/libs/jquery.tmpl.js
@@ -0,0 +1,500 @@
+/*!
+ * jQuery Templates Plugin 1.0.0pre
+ * http://github.com/jquery/jquery-tmpl
+ * Requires jQuery 1.4.2
+ *
+ * Copyright Software Freedom Conservancy, Inc.
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ */
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: jQuery Templates Plugin
+//>>label: jQuery Templates Plugin
+//>>group: Libs
+
+define( [ 
+	"jquery" 
+	], function( jQuery ) {
+
+//>>excludeEnd("jqmBuildExclude");
+
+(function( jQuery, undefined ){
+	var oldManip = jQuery.fn.domManip, tmplItmAtt = "_tmplitem", htmlExpr = /^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,
+		newTmplItems = {}, wrappedItems = {}, appendToTmplItems, topTmplItem = { key: 0, data: {} }, itemKey = 0, cloneIndex = 0, stack = [];
+
+	function newTmplItem( options, parentItem, fn, data ) {
+		// Returns a template item data structure for a new rendered instance of a template (a 'template item').
+		// The content field is a hierarchical array of strings and nested items (to be
+		// removed and replaced by nodes field of dom elements, once inserted in DOM).
+		var newItem = {
+			data: data || (data === 0 || data === false) ? data : (parentItem ? parentItem.data : {}),
+			_wrap: parentItem ? parentItem._wrap : null,
+			tmpl: null,
+			parent: parentItem || null,
+			nodes: [],
+			calls: tiCalls,
+			nest: tiNest,
+			wrap: tiWrap,
+			html: tiHtml,
+			update: tiUpdate
+		};
+		if ( options ) {
+			jQuery.extend( newItem, options, { nodes: [], parent: parentItem });
+		}
+		if ( fn ) {
+			// Build the hierarchical content to be used during insertion into DOM
+			newItem.tmpl = fn;
+			newItem._ctnt = newItem._ctnt || newItem.tmpl( jQuery, newItem );
+			newItem.key = ++itemKey;
+			// Keep track of new template item, until it is stored as jQuery Data on DOM element
+			(stack.length ? wrappedItems : newTmplItems)[itemKey] = newItem;
+		}
+		return newItem;
+	}
+
+	// Override appendTo etc., in order to provide support for targeting multiple elements. (This code would disappear if integrated in jquery core).
+	jQuery.each({
+		appendTo: "append",
+		prependTo: "prepend",
+		insertBefore: "before",
+		insertAfter: "after",
+		replaceAll: "replaceWith"
+	}, function( name, original ) {
+		jQuery.fn[ name ] = function( selector ) {
+			var ret = [], insert = jQuery( selector ), elems, i, l, tmplItems,
+				parent = this.length === 1 && this[0].parentNode;
+
+			appendToTmplItems = newTmplItems || {};
+			if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
+				insert[ original ]( this[0] );
+				ret = this;
+			} else {
+				for ( i = 0, l = insert.length; i < l; i++ ) {
+					cloneIndex = i;
+					elems = (i > 0 ? this.clone(true) : this).get();
+					jQuery( insert[i] )[ original ]( elems );
+					ret = ret.concat( elems );
+				}
+				cloneIndex = 0;
+				ret = this.pushStack( ret, name, insert.selector );
+			}
+			tmplItems = appendToTmplItems;
+			appendToTmplItems = null;
+			jQuery.tmpl.complete( tmplItems );
+			return ret;
+		};
+	});
+
+	jQuery.fn.extend({
+		// Use first wrapped element as template markup.
+		// Return wrapped set of template items, obtained by rendering template against data.
+		tmpl: function( data, options, parentItem ) {
+			return jQuery.tmpl( this[0], data, options, parentItem );
+		},
+
+		// Find which rendered template item the first wrapped DOM element belongs to
+		tmplItem: function() {
+			return jQuery.tmplItem( this[0] );
+		},
+
+		// Consider the first wrapped element as a template declaration, and get the compiled template or store it as a named template.
+		template: function( name ) {
+			return jQuery.template( name, this[0] );
+		},
+
+		domManip: function( args, table, callback, options ) {
+			if ( args[0] && jQuery.isArray( args[0] )) {
+				var dmArgs = jQuery.makeArray( arguments ), elems = args[0], elemsLength = elems.length, i = 0, tmplItem;
+				while ( i < elemsLength && !(tmplItem = jQuery.data( elems[i++], "tmplItem" ))) {}
+				if ( tmplItem && cloneIndex ) {
+					dmArgs[2] = function( fragClone ) {
+						// Handler called by oldManip when rendered template has been inserted into DOM.
+						jQuery.tmpl.afterManip( this, fragClone, callback );
+					};
+				}
+				oldManip.apply( this, dmArgs );
+			} else {
+				oldManip.apply( this, arguments );
+			}
+			cloneIndex = 0;
+			if ( !appendToTmplItems ) {
+				jQuery.tmpl.complete( newTmplItems );
+			}
+			return this;
+		}
+	});
+
+	jQuery.extend({
+		// Return wrapped set of template items, obtained by rendering template against data.
+		tmpl: function( tmpl, data, options, parentItem ) {
+			var ret, topLevel = !parentItem;
+			if ( topLevel ) {
+				// This is a top-level tmpl call (not from a nested template using {{tmpl}})
+				parentItem = topTmplItem;
+				tmpl = jQuery.template[tmpl] || jQuery.template( null, tmpl );
+				wrappedItems = {}; // Any wrapped items will be rebuilt, since this is top level
+			} else if ( !tmpl ) {
+				// The template item is already associated with DOM - this is a refresh.
+				// Re-evaluate rendered template for the parentItem
+				tmpl = parentItem.tmpl;
+				newTmplItems[parentItem.key] = parentItem;
+				parentItem.nodes = [];
+				if ( parentItem.wrapped ) {
+					updateWrapped( parentItem, parentItem.wrapped );
+				}
+				// Rebuild, without creating a new template item
+				return jQuery( build( parentItem, null, parentItem.tmpl( jQuery, parentItem ) ));
+			}
+			if ( !tmpl ) {
+				return []; // Could throw...
+			}
+			if ( typeof data === "function" ) {
+				data = data.call( parentItem || {} );
+			}
+			if ( options && options.wrapped ) {
+				updateWrapped( options, options.wrapped );
+			}
+			ret = jQuery.isArray( data ) ?
+				jQuery.map( data, function( dataItem ) {
+					return dataItem ? newTmplItem( options, parentItem, tmpl, dataItem ) : null;
+				}) :
+				[ newTmplItem( options, parentItem, tmpl, data ) ];
+			return topLevel ? jQuery( build( parentItem, null, ret ) ) : ret;
+		},
+
+		// Return rendered template item for an element.
+		tmplItem: function( elem ) {
+			var tmplItem;
+			if ( elem instanceof jQuery ) {
+				elem = elem[0];
+			}
+			while ( elem && elem.nodeType === 1 && !(tmplItem = jQuery.data( elem, "tmplItem" )) && (elem = elem.parentNode) ) {}
+			return tmplItem || topTmplItem;
+		},
+
+		// Set:
+		// Use $.template( name, tmpl ) to cache a named template,
+		// where tmpl is a template string, a script element or a jQuery instance wrapping a script element, etc.
+		// Use $( "selector" ).template( name ) to provide access by name to a script block template declaration.
+
+		// Get:
+		// Use $.template( name ) to access a cached template.
+		// Also $( selectorToScriptBlock ).template(), or $.template( null, templateString )
+		// will return the compiled template, without adding a name reference.
+		// If templateString includes at least one HTML tag, $.template( templateString ) is equivalent
+		// to $.template( null, templateString )
+		template: function( name, tmpl ) {
+			if (tmpl) {
+				// Compile template and associate with name
+				if ( typeof tmpl === "string" ) {
+					// This is an HTML string being passed directly in.
+					tmpl = buildTmplFn( tmpl );
+				} else if ( tmpl instanceof jQuery ) {
+					tmpl = tmpl[0] || {};
+				}
+				if ( tmpl.nodeType ) {
+					// If this is a template block, use cached copy, or generate tmpl function and cache.
+					tmpl = jQuery.data( tmpl, "tmpl" ) || jQuery.data( tmpl, "tmpl", buildTmplFn( tmpl.innerHTML ));
+					// Issue: In IE, if the container element is not a script block, the innerHTML will remove quotes from attribute values whenever the value does not include white space.
+					// This means that foo="${x}" will not work if the value of x includes white space: foo="${x}" -> foo=value of x.
+					// To correct this, include space in tag: foo="${ x }" -> foo="value of x"
+				}
+				return typeof name === "string" ? (jQuery.template[name] = tmpl) : tmpl;
+			}
+			// Return named compiled template
+			return name ? (typeof name !== "string" ? jQuery.template( null, name ):
+				(jQuery.template[name] ||
+					// If not in map, and not containing at least on HTML tag, treat as a selector.
+					// (If integrated with core, use quickExpr.exec)
+					jQuery.template( null, htmlExpr.test( name ) ? name : jQuery( name )))) : null;
+		},
+
+		encode: function( text ) {
+			// Do HTML encoding replacing < > & and ' and " by corresponding entities.
+			return ("" + text).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;");
+		}
+	});
+
+	jQuery.extend( jQuery.tmpl, {
+		tag: {
+			"tmpl": {
+				_default: { $2: "null" },
+				open: "if($notnull_1){__=__.concat($item.nest($1,$2));}"
+				// tmpl target parameter can be of type function, so use $1, not $1a (so not auto detection of functions)
+				// This means that {{tmpl foo}} treats foo as a template (which IS a function).
+				// Explicit parens can be used if foo is a function that returns a template: {{tmpl foo()}}.
+			},
+			"wrap": {
+				_default: { $2: "null" },
+				open: "$item.calls(__,$1,$2);__=[];",
+				close: "call=$item.calls();__=call._.concat($item.wrap(call,__));"
+			},
+			"each": {
+				_default: { $2: "$index, $value" },
+				open: "if($notnull_1){$.each($1a,function($2){with(this){",
+				close: "}});}"
+			},
+			"if": {
+				open: "if(($notnull_1) && $1a){",
+				close: "}"
+			},
+			"else": {
+				_default: { $1: "true" },
+				open: "}else if(($notnull_1) && $1a){"
+			},
+			"html": {
+				// Unecoded expression evaluation.
+				open: "if($notnull_1){__.push($1a);}"
+			},
+			"=": {
+				// Encoded expression evaluation. Abbreviated form is ${}.
+				_default: { $1: "$data" },
+				open: "if($notnull_1){__.push($.encode($1a));}"
+			},
+			"!": {
+				// Comment tag. Skipped by parser
+				open: ""
+			}
+		},
+
+		// This stub can be overridden, e.g. in jquery.tmplPlus for providing rendered events
+		complete: function( items ) {
+			newTmplItems = {};
+		},
+
+		// Call this from code which overrides domManip, or equivalent
+		// Manage cloning/storing template items etc.
+		afterManip: function afterManip( elem, fragClone, callback ) {
+			// Provides cloned fragment ready for fixup prior to and after insertion into DOM
+			var content = fragClone.nodeType === 11 ?
+				jQuery.makeArray(fragClone.childNodes) :
+				fragClone.nodeType === 1 ? [fragClone] : [];
+
+			// Return fragment to original caller (e.g. append) for DOM insertion
+			callback.call( elem, fragClone );
+
+			// Fragment has been inserted:- Add inserted nodes to tmplItem data structure. Replace inserted element annotations by jQuery.data.
+			storeTmplItems( content );
+			cloneIndex++;
+		}
+	});
+
+	//========================== Private helper functions, used by code above ==========================
+
+	function build( tmplItem, nested, content ) {
+		// Convert hierarchical content into flat string array
+		// and finally return array of fragments ready for DOM insertion
+		var frag, ret = content ? jQuery.map( content, function( item ) {
+			return (typeof item === "string") ?
+				// Insert template item annotations, to be converted to jQuery.data( "tmplItem" ) when elems are inserted into DOM.
+				(tmplItem.key ? item.replace( /(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g, "$1 " + tmplItmAtt + "=\"" + tmplItem.key + "\" $2" ) : item) :
+				// This is a child template item. Build nested template.
+				build( item, tmplItem, item._ctnt );
+		}) :
+		// If content is not defined, insert tmplItem directly. Not a template item. May be a string, or a string array, e.g. from {{html $item.html()}}.
+		tmplItem;
+		if ( nested ) {
+			return ret;
+		}
+
+		// top-level template
+		ret = ret.join("");
+
+		// Support templates which have initial or final text nodes, or consist only of text
+		// Also support HTML entities within the HTML markup.
+		ret.replace( /^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/, function( all, before, middle, after) {
+			frag = jQuery( middle ).get();
+
+			storeTmplItems( frag );
+			if ( before ) {
+				frag = unencode( before ).concat(frag);
+			}
+			if ( after ) {
+				frag = frag.concat(unencode( after ));
+			}
+		});
+		return frag ? frag : unencode( ret );
+	}
+
+	function unencode( text ) {
+		// Use createElement, since createTextNode will not render HTML entities correctly
+		var el = document.createElement( "div" );
+		el.innerHTML = text;
+		return jQuery.makeArray(el.childNodes);
+	}
+
+	// Generate a reusable function that will serve to render a template against data
+	function buildTmplFn( markup ) {
+		return new Function("jQuery","$item",
+			// Use the variable __ to hold a string array while building the compiled template. (See https://github.com/jquery/jquery-tmpl/issues#issue/10).
+			"var $=jQuery,call,__=[],$data=$item.data;" +
+
+			// Introduce the data as local variables using with(){}
+			"with($data){__.push('" +
+
+			// Convert the template into pure JavaScript
+			jQuery.trim(markup)
+				.replace( /([\\'])/g, "\\$1" )
+				.replace( /[\r\t\n]/g, " " )
+				.replace( /\$\{([^\}]*)\}/g, "{{= $1}}" )
+				.replace( /\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,
+				function( all, slash, type, fnargs, target, parens, args ) {
+					var tag = jQuery.tmpl.tag[ type ], def, expr, exprAutoFnDetect;
+					if ( !tag ) {
+						throw "Unknown template tag: " + type;
+					}
+					def = tag._default || [];
+					if ( parens && !/\w$/.test(target)) {
+						target += parens;
+						parens = "";
+					}
+					if ( target ) {
+						target = unescape( target );
+						args = args ? ("," + unescape( args ) + ")") : (parens ? ")" : "");
+						// Support for target being things like a.toLowerCase();
+						// In that case don't call with template item as 'this' pointer. Just evaluate...
+						expr = parens ? (target.indexOf(".") > -1 ? target + unescape( parens ) : ("(" + target + ").call($item" + args)) : target;
+						exprAutoFnDetect = parens ? expr : "(typeof(" + target + ")==='function'?(" + target + ").call($item):(" + target + "))";
+					} else {
+						exprAutoFnDetect = expr = def.$1 || "null";
+					}
+					fnargs = unescape( fnargs );
+					return "');" +
+						tag[ slash ? "close" : "open" ]
+							.split( "$notnull_1" ).join( target ? "typeof(" + target + ")!=='undefined' && (" + target + ")!=null" : "true" )
+							.split( "$1a" ).join( exprAutoFnDetect )
+							.split( "$1" ).join( expr )
+							.split( "$2" ).join( fnargs || def.$2 || "" ) +
+						"__.push('";
+				}) +
+			"');}return __;"
+		);
+	}
+	function updateWrapped( options, wrapped ) {
+		// Build the wrapped content.
+		options._wrap = build( options, true,
+			// Suport imperative scenario in which options.wrapped can be set to a selector or an HTML string.
+			jQuery.isArray( wrapped ) ? wrapped : [htmlExpr.test( wrapped ) ? wrapped : jQuery( wrapped ).html()]
+		).join("");
+	}
+
+	function unescape( args ) {
+		return args ? args.replace( /\\'/g, "'").replace(/\\\\/g, "\\" ) : null;
+	}
+	function outerHtml( elem ) {
+		var div = document.createElement("div");
+		div.appendChild( elem.cloneNode(true) );
+		return div.innerHTML;
+	}
+
+	// Store template items in jQuery.data(), ensuring a unique tmplItem data data structure for each rendered template instance.
+	function storeTmplItems( content ) {
+		var keySuffix = "_" + cloneIndex, elem, elems, newClonedItems = {}, i, l, m;
+		for ( i = 0, l = content.length; i < l; i++ ) {
+			if ( (elem = content[i]).nodeType !== 1 ) {
+				continue;
+			}
+			elems = elem.getElementsByTagName("*");
+			for ( m = elems.length - 1; m >= 0; m-- ) {
+				processItemKey( elems[m] );
+			}
+			processItemKey( elem );
+		}
+		function processItemKey( el ) {
+			var pntKey, pntNode = el, pntItem, tmplItem, key;
+			// Ensure that each rendered template inserted into the DOM has its own template item,
+			if ( (key = el.getAttribute( tmplItmAtt ))) {
+				while ( pntNode.parentNode && (pntNode = pntNode.parentNode).nodeType === 1 && !(pntKey = pntNode.getAttribute( tmplItmAtt ))) { }
+				if ( pntKey !== key ) {
+					// The next ancestor with a _tmplitem expando is on a different key than this one.
+					// So this is a top-level element within this template item
+					// Set pntNode to the key of the parentNode, or to 0 if pntNode.parentNode is null, or pntNode is a fragment.
+					pntNode = pntNode.parentNode ? (pntNode.nodeType === 11 ? 0 : (pntNode.getAttribute( tmplItmAtt ) || 0)) : 0;
+					if ( !(tmplItem = newTmplItems[key]) ) {
+						// The item is for wrapped content, and was copied from the temporary parent wrappedItem.
+						tmplItem = wrappedItems[key];
+						tmplItem = newTmplItem( tmplItem, newTmplItems[pntNode]||wrappedItems[pntNode] );
+						tmplItem.key = ++itemKey;
+						newTmplItems[itemKey] = tmplItem;
+					}
+					if ( cloneIndex ) {
+						cloneTmplItem( key );
+					}
+				}
+				el.removeAttribute( tmplItmAtt );
+			} else if ( cloneIndex && (tmplItem = jQuery.data( el, "tmplItem" )) ) {
+				// This was a rendered element, cloned during append or appendTo etc.
+				// TmplItem stored in jQuery data has already been cloned in cloneCopyEvent. We must replace it with a fresh cloned tmplItem.
+				cloneTmplItem( tmplItem.key );
+				newTmplItems[tmplItem.key] = tmplItem;
+				pntNode = jQuery.data( el.parentNode, "tmplItem" );
+				pntNode = pntNode ? pntNode.key : 0;
+			}
+			if ( tmplItem ) {
+				pntItem = tmplItem;
+				// Find the template item of the parent element.
+				// (Using !=, not !==, since pntItem.key is number, and pntNode may be a string)
+				while ( pntItem && pntItem.key != pntNode ) {
+					// Add this element as a top-level node for this rendered template item, as well as for any
+					// ancestor items between this item and the item of its parent element
+					pntItem.nodes.push( el );
+					pntItem = pntItem.parent;
+				}
+				// Delete content built during rendering - reduce API surface area and memory use, and avoid exposing of stale data after rendering...
+				delete tmplItem._ctnt;
+				delete tmplItem._wrap;
+				// Store template item as jQuery data on the element
+				jQuery.data( el, "tmplItem", tmplItem );
+			}
+			function cloneTmplItem( key ) {
+				key = key + keySuffix;
+				tmplItem = newClonedItems[key] =
+					(newClonedItems[key] || newTmplItem( tmplItem, newTmplItems[tmplItem.parent.key + keySuffix] || tmplItem.parent ));
+			}
+		}
+	}
+
+	//---- Helper functions for template item ----
+
+	function tiCalls( content, tmpl, data, options ) {
+		if ( !content ) {
+			return stack.pop();
+		}
+		stack.push({ _: content, tmpl: tmpl, item:this, data: data, options: options });
+	}
+
+	function tiNest( tmpl, data, options ) {
+		// nested template, using {{tmpl}} tag
+		return jQuery.tmpl( jQuery.template( tmpl ), data, options, this );
+	}
+
+	function tiWrap( call, wrapped ) {
+		// nested template, using {{wrap}} tag
+		var options = call.options || {};
+		options.wrapped = wrapped;
+		// Apply the template, which may incorporate wrapped content,
+		return jQuery.tmpl( jQuery.template( call.tmpl ), call.data, options, call.item );
+	}
+
+	function tiHtml( filter, textOnly ) {
+		var wrapped = this._wrap;
+		return jQuery.map(
+			jQuery( jQuery.isArray( wrapped ) ? wrapped.join("") : wrapped ).filter( filter || "*" ),
+			function(e) {
+				return textOnly ?
+					e.innerText || e.textContent :
+					e.outerHTML || outerHtml(e);
+			});
+	}
+
+	function tiUpdate() {
+		var coll = this.nodes;
+		jQuery.tmpl( null, null, null, this).insertBefore( coll[0] );
+		jQuery( coll ).remove();
+	}
+})( jQuery );
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-tizen/blob/e21e0780/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/util/ensurens.js
----------------------------------------------------------------------
diff --git a/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/util/ensurens.js b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/util/ensurens.js
new file mode 100644
index 0000000..e0efda4
--- /dev/null
+++ b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/util/ensurens.js
@@ -0,0 +1,65 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Make namespace for modules
+//>>label: Ensurens
+//>>group: Tizen:Utilities
+
+define( [ 
+	], function ( ) {
+
+//>>excludeEnd("jqmBuildExclude");
+
+/*
+ *
+ * This software is licensed under the MIT licence (as defined by the OSI at
+ * http://www.opensource.org/licenses/mit-license.php)
+ * 
+ * ***************************************************************************
+ * Copyright (C) 2011 by Intel Corporation Ltd.
+ * 
+ * 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 rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * ***************************************************************************
+ */
+
+// Ensure that the given namespace is defined. If not, define it to be an empty object.
+// This is kinda like the mkdir -p command.
+(function (window) {
+		window.ensureNS = (function () {
+		var internalCache = {};
+		return function ensureNS (ns) { // name just for debugging purposes
+			var nsArr = ns.split(".").reverse(),
+				nsSoFar = "",
+				buffer = "",
+				leaf = "",
+				l = nsArr.length;
+			while(--l >= 0) {
+				leaf = nsArr[l];
+				nsSoFar = nsSoFar + (nsSoFar.length > 0 ? "." : "") + leaf;
+				if (!internalCache[nsSoFar]) {
+					internalCache[nsSoFar] = true;
+					buffer += "!window." + nsSoFar + ' && (window.' + nsSoFar + " = {});\n";
+				}
+			}
+			buffer.length && (new Function(buffer))();
+		};
+	})();
+})(this);
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+} );
+//>>excludeEnd("jqmBuildExclude");

http://git-wip-us.apache.org/repos/asf/cordova-tizen/blob/e21e0780/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/util/range.js
----------------------------------------------------------------------
diff --git a/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/util/range.js b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/util/range.js
new file mode 100644
index 0000000..ec8c624
--- /dev/null
+++ b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/util/range.js
@@ -0,0 +1,69 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Makes array with given range
+//>>label: Range
+//>>group: Tizen:Utilities
+
+define( [ 
+	], function ( ) {
+
+//>>excludeEnd("jqmBuildExclude");
+
+/*
+ * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL licenses
+ * http://phpjs.org/functions/range
+ * original by: Waldo Malqui Silva
+ * version: 1107.2516
+ */
+function range( low, high, step ) {
+    // Create an array containing the range of integers or characters
+    // from low to high (inclusive)  
+    // 
+    // version: 1107.2516
+    // discuss at: http://phpjs.org/functions/range
+    // +   original by: Waldo Malqui Silva
+    // *     example 1: range ( 0, 12 );
+    // *     returns 1: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
+    // *     example 2: range( 0, 100, 10 );
+    // *     returns 2: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
+    // *     example 3: range( 'a', 'i' );
+    // *     returns 3: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']
+    // *     example 4: range( 'c', 'a' );
+    // *     returns 4: ['c', 'b', 'a']
+	var matrix = [],
+		inival,
+		endval,
+		plus,
+		walker = step || 1,
+		chars = false;
+
+    if (!isNaN(low) && !isNaN(high)) {
+        inival = low;
+        endval = high;
+    } else if (isNaN(low) && isNaN(high)) {
+        chars = true;
+        inival = low.charCodeAt(0);
+        endval = high.charCodeAt(0);
+    } else {
+        inival = (isNaN(low) ? 0 : low);
+        endval = (isNaN(high) ? 0 : high);
+    }
+
+    plus = ((inival > endval) ? false : true);
+    if (plus) {
+        while (inival <= endval) {
+            matrix.push(((chars) ? String.fromCharCode(inival) : inival));
+            inival += walker;
+        }
+    } else {
+        while (inival >= endval) {
+            matrix.push(((chars) ? String.fromCharCode(inival) : inival));
+            inival -= walker;
+        }
+    }
+
+    return matrix;
+}
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+} );
+//>>excludeEnd("jqmBuildExclude");

http://git-wip-us.apache.org/repos/asf/cordova-tizen/blob/e21e0780/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/imageloader.js
----------------------------------------------------------------------
diff --git a/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/imageloader.js b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/imageloader.js
new file mode 100644
index 0000000..96e2701
--- /dev/null
+++ b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/imageloader.js
@@ -0,0 +1,181 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Tizen image loader component for gallery3d
+//>>label: Image loader
+//>>group: Tizen:Widgets:Components
+
+define( [ 
+	], function ( ) {
+
+//>>excludeEnd("jqmBuildExclude");
+
+/* ***************************************************************************
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
+ *
+ * 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 rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * ***************************************************************************
+ *
+ * Authors: Hyunsook Park <hy...@samsung.com>
+ *			Wonseop Kim <wo...@samsung.com>
+*/
+
+( function ( $, window, document, undefined ) {
+	var _canvas = document.createElement( 'canvas' ),
+		_context = _canvas.getContext( '2d' );
+
+	function fileSystemErrorMessage( e ) {
+		var FileError = window.FileError,
+			msg = '';
+		switch ( e.code ) {
+		case FileError.QUOTA_EXCEEDED_ERR:
+			msg = 'QUOTA_EXCEEDED_ERR';
+			break;
+		case FileError.NOT_FOUND_ERR:
+			msg = 'NOT_FOUND_ERR';
+			break;
+		case FileError.SECURITY_ERR:
+			msg = 'SECURITY_ERR';
+			break;
+		case FileError.INVALID_MODIFICATION_ERR:
+			msg = 'INVALID_MODIFICATION_ERR';
+			break;
+		case FileError.INVALID_STATE_ERR:
+			msg = 'INVALID_STATE_ERR';
+			break;
+		default:
+			msg = 'Unknown Error';
+			break;
+		}
+		return msg;
+	}
+
+	function getInternalURLFromURL( url ) {
+		var internalURL = url.replace( /\//gi, "_" );
+		return internalURL;
+	}
+
+	function resize( imagewidth, imageheight, thumbwidth, thumbheight, fit ) {
+		var w = 0, h = 0, x = 0, y = 0,
+			widthratio = imagewidth / thumbwidth,
+			heightratio = imageheight / thumbheight,
+			maxratio = Math.max( widthratio, heightratio );
+
+		if ( fit ) {
+			w = thumbwidth;
+			h = thumbheight;
+		} else {
+			if ( maxratio > 1 ) {
+				w = imagewidth / maxratio;
+				h = imageheight / maxratio;
+			} else {
+				w = imagewidth;
+				h = imageheight;
+			}
+			x = ( thumbwidth - w ) / 2;
+			y = ( thumbheight - h ) / 2;
+		}
+
+		return { w: w, h: h, x: x, y: y };
+	}
+
+	function getThumbnail( img, thumbwidth, thumbheight, fit ) {
+		var dimensions, url;
+		_canvas.width = thumbwidth;
+		_canvas.height = thumbheight;
+		dimensions = resize( img.width, img.height, thumbwidth, thumbheight, fit );
+		_context.fillStyle = "#000000";
+		_context.fillRect ( 0, 0, thumbwidth, thumbheight );
+		_context.drawImage( img, dimensions.x, dimensions.y, dimensions.w, dimensions.h );
+		url = _canvas.toDataURL();
+		return url;
+	}
+
+	$.imageloader = {
+		_grantedBytes: 1024 * 1024,
+		getThumbnail: function ( url, _callback ) {
+			var internalURL, canvasDataURI;
+			function errorHandler( e ) {
+				var msg = fileSystemErrorMessage( e );
+				if ( _callback ) {
+					_callback( ( msg === "NOT_FOUND_ERR" ) ? msg : null );
+				}
+			}
+
+			internalURL = getInternalURLFromURL( url );
+			try {
+				canvasDataURI = localStorage.getItem( internalURL );
+				if ( _callback ) {
+					_callback( ( canvasDataURI === null ) ? "NOT_FOUND_ERR" : canvasDataURI );
+				}
+			} catch ( e ) {
+				if ( _callback ) {
+					_callback( ( e.type === "non_object_property_load" ) ? "NOT_FOUND_ERR" : null );
+				}
+			}
+		},
+
+		setThumbnail: function ( url, _callback, thumbWidth, thumbHeight, fit ) {
+			var image, internalURL, canvasDataURI;
+			function errorHandler( e ) {
+				var msg = fileSystemErrorMessage( e );
+				if ( _callback ) {
+					_callback( ( msg === "NOT_FOUND_ERR" ) ? msg : null );
+				}
+			}
+
+			thumbWidth = thumbWidth || 128;
+			thumbHeight = thumbHeight || 128;
+			fit = fit || true;
+			image = new Image();
+			image.onload = function () {
+				internalURL = getInternalURLFromURL( url );
+				canvasDataURI = getThumbnail( this, thumbWidth, thumbHeight, fit );
+				try {
+					localStorage.setItem( internalURL, canvasDataURI );
+					if ( _callback ) {
+						_callback( canvasDataURI );
+					}
+				} catch ( e ) {
+					if ( _callback ) {
+						_callback( ( e.type === "non_object_property_load" ) ? "NOT_FOUND_ERR" : null );
+					}
+				}
+			};
+			image.src = url;
+		},
+
+		removeThumbnail: function ( url ) {
+			var internalURL;
+			function errorHandler( e ) {
+				fileSystemErrorMessage( e );
+			}
+
+			internalURL = getInternalURLFromURL( url );
+			try {
+				localStorage.removeItem( internalURL );
+			} catch ( e ) {
+				throw e;
+			}
+		}
+	};
+
+} ( jQuery, window, document ) );
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+} );
+//>>excludeEnd("jqmBuildExclude");

http://git-wip-us.apache.org/repos/asf/cordova-tizen/blob/e21e0780/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/motionpath.js
----------------------------------------------------------------------
diff --git a/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/motionpath.js b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/motionpath.js
new file mode 100644
index 0000000..9cbbaaf
--- /dev/null
+++ b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/motionpath.js
@@ -0,0 +1,291 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Tizen motion path component for gallery3d
+//>>label: Motion path
+//>>group: Tizen:Widgets:Components
+
+define( [ 
+	], function ( ) {
+
+//>>excludeEnd("jqmBuildExclude");
+
+/* ***************************************************************************
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
+ *
+ * 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 rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * ***************************************************************************
+ *
+ * Authors: Hyunsook Park <hy...@samsung.com>
+ *			Wonseop Kim <wo...@samsung.com>
+*/
+
+( function ( $, window, undefined ) {
+	var HALF_PI = Math.PI / 2,
+		DEFAULT_STEP = 0.001,
+		MotionPath = {},
+		vec3 = window.vec3,
+		arcLength3d = function ( p0, p1 ) {
+			var d = [ p1[0] - p0[0], p1[1] - p0[1], p1[2] - p0[2] ],
+				value = Math.sqrt( d[0] * d[0] + d[1] * d[1] + d[2] * d[2] );
+			return value;
+		};
+
+	MotionPath.base = function () {};
+	MotionPath.base.prototype = {
+		points: [],
+		step: DEFAULT_STEP,
+		length: 0,
+		levels: [],
+		init: function ( data ) {},
+		calculateLevel: function ( maxLevel ) {},
+		calculateTotalLength: function () {},
+		getPosition: function ( percent ) {},
+		getPercent: function ( start, interval ) {},
+		getAngle: function ( percent ) {}
+	};
+
+	MotionPath.bezier2d = function () {};
+	MotionPath.bezier2d.prototype = $.extend( true, {}, MotionPath.base.prototype, {
+		init: function ( data ) {
+			this.points = data.points;
+			this.step = data.step || DEFAULT_STEP;
+			this.length = this.calculateTotalLength();
+			this.levels = this.calculateLevel( data.maxLevel ) || [];
+		},
+
+		calculateLevel: function ( maxLevel ) {
+			var totalLength = this.length,
+				interval = totalLength / maxLevel,
+				levels = [],
+				i;
+
+			if ( !maxLevel ) {
+				return null;
+			}
+
+			for ( i = 0; i < maxLevel; i += 1 ) {
+				levels[maxLevel - i] = this.getPercent( 0, interval * i );
+			}
+
+			return levels;
+		},
+
+		calculateTotalLength: function () {
+			var step = this.step,
+				current = this.getPosition( 0 ),
+				last = current,
+				length = 0,
+				percent;
+			for ( percent = step; percent <= 1; percent += step ) {
+				current = this.getPosition( percent );
+				length += arcLength3d( last, current );
+				last = current;
+			}
+			return length;
+		},
+
+		getPosition: function ( percent ) {
+			var points = this.points,
+				getValue = function ( p1, c1, c2, p2, t ) {
+					return Math.pow(1 - t, 3) * p1 +
+						3 * t * Math.pow( 1 - t, 2 ) * c1 +
+						3 * Math.pow( t, 2 ) * ( 1 - t ) * c2 +
+						Math.pow( t, 3 ) * p2;
+				},
+				result = [
+					getValue( points[0][0], points[1][0], points[2][0], points[3][0], percent ),
+					getValue( points[0][2], points[1][2], points[2][2], points[3][2], percent )
+				];
+			return [ result[0], 0, result[1] ];
+		},
+
+		getPercent: function ( start, interval ) {
+			var step = this.step,
+				current = this.getPosition( start = start || 0 ),
+				last = current,
+				targetLength = start + interval,
+				length = 0,
+				percent;
+
+			for ( percent = start + step; percent <= 1; percent += step ) {
+				current = this.getPosition( percent );
+				length += arcLength3d( last, current );
+				if ( length >= targetLength ) {
+					return percent;
+				}
+				last = current;
+			}
+			return 1;
+		},
+
+		getAngle: function ( percent ) {
+			var points = this.points,
+				getTangent = function ( p1, c1, c2, p2, t ) {
+					return 3 * t * t * ( -p1 + 3 * c1 - 3 * c2 + p2 ) + 6 * t * ( p1 - 2 * c1 + c2 ) + 3 * ( -p1 + c1 );
+				},
+				tx = getTangent( points[0][0], points[1][0], points[2][0], points[3][0], percent ),
+				ty = getTangent( points[0][2], points[1][2], points[2][2], points[3][2], percent );
+			return Math.atan2( tx, ty ) - HALF_PI;
+		}
+
+	} );
+
+	// clamped cubic B-spline curve
+	// http://web.mit.edu/hyperbook/Patrikalakis-Maekawa-Cho/node17.html
+	// http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/B-spline/bspline-curve-coef.html
+	MotionPath.bspline = function () {};
+	MotionPath.bspline.prototype = $.extend( true, {}, MotionPath.base.prototype, {
+		_degree: 3,
+		_numberOfControls : 0,
+		_knotVectors: [],
+		_numberOfKnots: 0,
+
+		init: function ( data ) {
+			this.points = data.points;
+			this.step = data.step || DEFAULT_STEP;
+			this._numberOfPoints = this.points.length - 1;
+			this._numberOfKnots = this._numberOfPoints + this._degree + 1;
+
+			var deltaKnot = 1 / ( this._numberOfKnots - ( 2 * this._degree ) ),
+				v = deltaKnot,
+				i = 0;
+
+			while ( i <= this._numberOfKnots ) {
+				if ( i <= this._degree ) {
+					this._knotVectors.push( 0 );
+				} else if ( i < this._numberOfKnots - this._degree + 1 ) {
+					this._knotVectors.push( v );
+					v += deltaKnot;
+				} else {
+					this._knotVectors.push( 1 );
+				}
+				i += 1;
+			}
+
+			this.length = this.calculateTotalLength();
+			this.levels = this.calculateLevel( data.maxLevel ) || [];
+		},
+
+		_Np: function ( percent, i, degree ) {
+			var knots = this._knotVectors,
+				A = 0,
+				B = 0,
+				denominator = 0,
+				N0 = function ( percent, i ) {
+					return ( ( knots[i] <= percent && percent < knots[i + 1] ) ? 1 : 0 );
+				};
+
+			if ( degree === 1 ) {
+				A = N0( percent, i );
+				B = N0( percent, i + 1 );
+			} else {
+				A = this._Np( percent, i, degree - 1 );
+				B = this._Np( percent, i + 1, degree - 1 );
+			}
+
+			denominator = knots[i + degree] - knots[i];
+			A *= ( denominator !== 0 ) ? ( ( percent - knots[i] ) / denominator ) : 0;
+			denominator = knots[i + degree + 1] - knots[i + 1];
+			B *= ( denominator !== 0 ) ? ( ( knots[i + degree + 1] - percent ) / denominator ) : 0;
+
+			return A + B;
+		},
+
+		calculateLevel: function ( maxLevel ) {
+			var totalLength = this.length,
+				interval = totalLength / maxLevel,
+				levels = [],
+				i;
+
+			if ( !maxLevel ) {
+				return null;
+			}
+
+			for ( i = 0; i < maxLevel; i += 1 ) {
+				levels[maxLevel - i] = this.getPercent( 0, interval * i );
+			}
+			return levels;
+		},
+
+		calculateTotalLength: function () {
+			var step = this.step,
+				current = this.getPosition( 0 ),
+				last = current,
+				length = 0,
+				percent;
+			for ( percent = step; percent <= 1; percent += step ) {
+				current = this.getPosition( percent );
+				length += arcLength3d( last, current );
+				last = current;
+			}
+			return length;
+		},
+
+		getPosition: function ( percent ) {
+			var result = [], i, j, sum;
+			percent = percent.toFixed( 4 );
+			for ( j = 0; j < 3; j += 1 ) {
+				sum = 0;
+				for ( i = 0; i <= this._numberOfPoints; i += 1 ) {
+					sum += this.points[i][j] * this._Np( percent, i, this._degree );
+				}
+				result[j] = sum;
+			}
+
+			return result;
+		},
+
+		getPercent: function ( start, interval ) {
+			var step = this.step,
+				current = this.getPosition( start = start || 0 ),
+				last = current,
+				targetLength = start + interval,
+				length = 0,
+				percent;
+
+			for ( percent = start + step; percent <= 1; percent += step ) {
+				current = this.getPosition( percent );
+				length += arcLength3d( last, current );
+				if ( length >= targetLength ) {
+					return percent;
+				}
+				last = current;
+			}
+			return 1;
+		},
+
+		getAngle: function ( percent ) {
+			var prev = this.getPosition( percent ),
+				next = this.getPosition( percent + 0.001 ),
+				dir = vec3.normalize( vec3.direction( prev, next ) ),
+				cosValue = vec3.dot( dir, [1, 0, 0] );
+
+			return Math.acos( cosValue ) + Math.PI;
+		}
+	} );
+
+	$.motionpath = function ( type, data ) {
+		var object = new MotionPath[type]();
+		object.init( data );
+		return object;
+	};
+} ( jQuery, window ) );
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+} );
+//>>excludeEnd("jqmBuildExclude");

http://git-wip-us.apache.org/repos/asf/cordova-tizen/blob/e21e0780/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/webgl.js
----------------------------------------------------------------------
diff --git a/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/webgl.js b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/webgl.js
new file mode 100644
index 0000000..00ab3d8
--- /dev/null
+++ b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/components/webgl.js
@@ -0,0 +1,127 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Tizen WebGL component for gallery3d
+//>>label: WebGL
+//>>group: Tizen:Widgets:Lib
+
+define( [ 
+	], function ( ) {
+
+//>>excludeEnd("jqmBuildExclude");
+
+/* ***************************************************************************
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
+ *
+ * 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 rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * ***************************************************************************
+ *
+ * Authors: Hyunsook Park <hy...@samsung.com>
+ *			Wonseop Kim <wo...@samsung.com>
+*/
+
+( function ( $, undefined ) {
+	$.webgl = {};
+
+	$.webgl.shader = {
+		_vertexShader: null,
+		_fragmentShader: null,
+
+		deleteShaders: function ( gl ) {
+			gl.deleteShader( this._vertexShader );
+			gl.deleteShader( this._fragmentShader );
+		},
+
+		addShaderProgram : function ( gl, vs, fs, isFile ) {
+			var shaderProgram,
+				vertexShaderSource = {},
+				fragmentShaderSource = {};
+
+			if ( isFile ) {
+				vertexShaderSource = this.loadShaderFile( vs );
+				fragmentShaderSource = this.loadShaderFile( fs );
+			} else {
+				vertexShaderSource.source = vs;
+				fragmentShaderSource.source = fs;
+			}
+
+			this._vertexShader = this.getShader( gl, gl.VERTEX_SHADER, vertexShaderSource );
+			this._fragmentShader = this.getShader( gl, gl.FRAGMENT_SHADER, fragmentShaderSource );
+
+			shaderProgram = gl.createProgram();
+			gl.attachShader( shaderProgram, this._vertexShader);
+			gl.attachShader( shaderProgram, this._fragmentShader);
+			gl.linkProgram( shaderProgram );
+
+			if ( !gl.getProgramParameter( shaderProgram, gl.LINK_STATUS ) ) {
+				window.alert( "Could not initialize Shaders!" );
+			}
+			return shaderProgram;
+		},
+
+		loadShaderFile : function ( path ) {
+			var cache = null;
+			$.ajax({
+				async : false,
+				url : path,
+				success : function ( result ) {
+					cache = {
+						source: result
+					};
+				}
+			});
+			return cache;
+		},
+
+		getShader: function ( gl, type, script ) {
+			var shader;
+
+			if ( !gl || !type || !script ) {
+				return null;
+			}
+
+			shader = gl.createShader( type );
+
+			gl.shaderSource( shader, script.source );
+			gl.compileShader( shader );
+
+			if ( !gl.getShaderParameter( shader, gl.COMPILE_STATUS ) ) {
+				window.alert( gl.getShaderInfoLog( shader ) );
+				gl.deleteShader( shader );
+				return null;
+			}
+			return shader;
+		}
+	};
+
+	$.webgl.buffer = {
+		attribBufferData: function ( gl, attribArray ) {
+			var attribBuffer = gl.createBuffer();
+
+			gl.bindBuffer( gl.ARRAY_BUFFER, attribBuffer );
+			gl.bufferData( gl.ARRAY_BUFFER, attribArray, gl.STATIC_DRAW );
+			gl.bindBuffer( gl.ARRAY_BUFFER, null );
+
+			return attribBuffer;
+		}
+	};
+
+} ( jQuery ) );
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+} );
+//>>excludeEnd("jqmBuildExclude");

http://git-wip-us.apache.org/repos/asf/cordova-tizen/blob/e21e0780/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.button.js
----------------------------------------------------------------------
diff --git a/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.button.js b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.button.js
new file mode 100644
index 0000000..9bb5c7d
--- /dev/null
+++ b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.button.js
@@ -0,0 +1,35 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Tizen button
+//>>label: Button
+//>>group: Tizen:Widgets
+define( [
+	"jqm/widgets/forms/button"
+	], function ( ) {
+} );
+//>>excludeEnd("jqmBuildExclude");
+
+/**
+	@class Button
+	The button widget shows a control on the screen that you can use to generate an action event when it is pressed and released. This widget is coded with standard HTML anchor and input elements and then enhanced by jQueryMobile to make it more attractive and usable on a mobile device. Buttons can be used in Tizen as described in the jQueryMobile documentation for buttons.
+
+	To add a button widget to the application, use the following code
+
+		<div data-role="button" data-inline="true">Text Button Test</div>
+		<div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+		<div data-role="button" data-inline="true" data-icon="plus" data-style="nobg"></div>
+
+	The button can define callbacks for events as described in the jQueryMobile documentation for button events.<br/>
+	You can use methods with the button as described in the jQueryMobile documentation for button methods.
+*/
+
+/**
+	@property {String} data-style
+	Defines the button style. <br/> The default value is box. If the value is set to circle, a circle-shaped button is created. If the value is set to nobg, a button is created without a background.
+
+*/
+/**
+	@property {String} data-icon
+	Defines an icon for a button. Tizen supports 12 icon styles: reveal, closed, opened, info, rename, call, warning, plus, minus, cancel, send, and favorite.
+
+*/
+

http://git-wip-us.apache.org/repos/asf/cordova-tizen/blob/e21e0780/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.checkbox.js
----------------------------------------------------------------------
diff --git a/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.checkbox.js b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.checkbox.js
new file mode 100644
index 0000000..48a88f4
--- /dev/null
+++ b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.checkbox.js
@@ -0,0 +1,31 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Checkbox widget
+//>>label: Checkbox
+//>>group: Tizen:Widgets
+define( [
+	"jqm/widgets/forms/checkboxradio"
+	], function ( ) {
+} );
+//>>excludeEnd("jqmBuildExclude");
+
+/**
+	@class Checkbox
+	The check box widget shows a list of options on the screen where one or more can be selected. Check boxes can be used in Tizen as described in the jQueryMobile documentation for check boxes.<br/> To add a check box widget to the application, use the following code:
+
+		<input type="checkbox" name="mycheck" id="check-test" class="favorite" />
+		<label for="check-test">Favorite</label>
+		<input type="checkbox" name="check-favorite" id="check-test2" checked="checked" disabled="disabled" class="favorite" />
+		<label for="check-test2">Favorite Checked, Disabled</label>
+
+	The check box can define callbacks for events as described in the jQueryMobile documentation for check box events.
+	You can use methods with the check box as described in the jQueryMobile documentation for check box methods.
+
+*/
+/**
+	@property {String} class
+	Defines the check box style. <br/> The default value is check. If the value is set to favorite, a star-shaped check box is created.
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+} );
+//>>excludeEnd("jqmBuildExclude");

http://git-wip-us.apache.org/repos/asf/cordova-tizen/blob/e21e0780/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.circularview.js
----------------------------------------------------------------------
diff --git a/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.circularview.js b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.circularview.js
new file mode 100644
index 0000000..b39fab8
--- /dev/null
+++ b/templates/CordovaTizenWebUIFrameworkTemplate/project/tizen-web-ui-fw/latest/js/modules/widgets/jquery.mobile.tizen.circularview.js
@@ -0,0 +1,530 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Container widget showing children circulary
+//>>label: Circularview
+//>>group: Tizen:Widgets
+
+define( [ 
+	"jquery",
+	"jqm/jquery.mobile.widget",
+	'../jquery.mobile.tizen.scrollview',
+	'libs/jquery.easing.1.3'
+	], function ( jQuery ) {
+
+//>>excludeEnd("jqmBuildExclude");
+
+/* ***************************************************************************
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
+ *
+ * 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 rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * ***************************************************************************
+ */
+
+// most of following codes are derived from jquery.mobile.scrollview.js
+(function ( $, window, document, undefined ) {
+
+	function circularNum( num, total ) {
+		var n = num % total;
+		if ( n < 0 ) {
+			n = total + n;
+		}
+		return n;
+	}
+
+	function setElementTransform( $ele, x, y ) {
+		var v = "translate3d( " + x + "," + y + ", 0px)";
+		$ele.css({
+			"-ms-transform": v,
+			"-o-transform": v,
+			"-moz-transform": v,
+			"-webkit-transform": v,
+			"transform": v
+		} );
+	}
+
+	function MomentumTracker( options ) {
+		this.options = $.extend( {}, options );
+		this.easing = "easeOutQuad";
+		this.reset();
+	}
+
+	var tstates = {
+		scrolling : 0,
+		done : 1
+	};
+
+	function getCurrentTime() {
+		return Date.now();
+	}
+
+	$.extend( MomentumTracker.prototype, {
+		start: function ( pos, speed, duration ) {
+			this.state = ( speed != 0 ) ? tstates.scrolling : tstates.done;
+			this.pos = pos;
+			this.speed = speed;
+			this.duration = duration;
+
+			this.fromPos = 0;
+			this.toPos = 0;
+
+			this.startTime = getCurrentTime();
+		},
+
+		reset: function () {
+			this.state = tstates.done;
+			this.pos = 0;
+			this.speed = 0;
+			this.duration = 0;
+		},
+
+		update: function () {
+			var state = this.state,
+				duration,
+				elapsed,
+				dx,
+				x;
+
+			if ( state == tstates.done ) {
+				return this.pos;
+			}
+
+			duration = this.duration;
+			elapsed = getCurrentTime() - this.startTime;
+			elapsed = elapsed > duration ? duration : elapsed;
+
+			dx = this.speed * ( 1 - $.easing[this.easing](elapsed / duration, elapsed, 0, 1, duration ) );
+
+			x = this.pos + dx;
+			this.pos = x;
+
+			if ( elapsed >= duration ) {
+				this.state = tstates.done;
+			}
+
+			return this.pos;
+		},
+
+		done: function () {
+			return this.state == tstates.done;
+		},
+
+		getPosition: function () {
+			return this.pos;
+		}
+	} );
+
+	jQuery.widget( "mobile.circularview", jQuery.mobile.widget, {
+		options: {
+			fps:				60,
+
+			scrollDuration:		2000,
+
+			moveThreshold:		10,
+			moveIntervalThreshold:	150,
+
+			startEventName:		"scrollstart",
+			updateEventName:	"scrollupdate",
+			stopEventName:		"scrollstop",
+
+			eventType:			$.support.touch	? "touch" : "mouse",
+
+			delayedClickSelector: "a, .ui-btn",
+			delayedClickEnabled: false
+		},
+
+		_makePositioned: function ( $ele ) {
+			if ( $ele.css( 'position' ) == 'static' ) {
+				$ele.css( 'position', 'relative' );
+			}
+		},
+
+		_create: function () {
+			var self = this;
+
+			this._items = $( this.element ).jqmData('list');
+			this._$clip = $( this.element ).addClass( "ui-scrollview-clip" );
+			this._$clip.wrapInner( '<div class="ui-scrollview-view"></div>' );
+			this._$view = $('.ui-scrollview-view', this._$clip );
+			this._$list = $( 'ul', this._$clip );
+
+			this._$clip.css( "overflow", "hidden" );
+			this._makePositioned( this._$clip );
+
+			this._$view.css( "overflow", "hidden" );
+			this._tracker = new MomentumTracker( this.options );
+
+			this._timerInterval = 1000 / this.options.fps;
+			this._timerID = 0;
+
+			this._timerCB = function () { self._handleMomentumScroll(); };
+
+			this.refresh();
+
+			this._addBehaviors();
+		},
+
+		reflow: function () {
+			var xy = this.getScrollPosition();
+			this.refresh();
+			this.scrollTo( xy.x, xy.y );
+		},
+
+		refresh: function () {
+			var itemsPerView;
+
+			this._$clip.width( $(window).width() );
+			this._clipWidth = this._$clip.width();
+			this._$list.empty();
+			this._$list.append(this._items[0]);
+			this._itemWidth = $(this._items[0]).outerWidth();
+			$(this._items[0]).detach();
+
+			itemsPerView = this._clipWidth / this._itemWidth;
+			itemsPerView = Math.ceil( itemsPerView * 10 ) / 10;
+			this._itemsPerView = parseInt( itemsPerView, 10 );
+			while ( this._itemsPerView + 1 > this._items.length ) {
+				$.merge( this._items, $(this._items).clone() );
+			}
+			this._rx = -this._itemWidth;
+			this._sx = -this._itemWidth;
+			this._setItems();
+		},
+
+		_startMScroll: function ( speedX, speedY ) {
+			this._stopMScroll();
+
+			var keepGoing = false,
+				duration = this.options.scrollDuration,
+				t = this._tracker,
+				c = this._clipWidth,
+				v = this._viewWidth;
+
+			this._$clip.trigger( this.options.startEventName);
+
+			t.start( this._rx, speedX, duration, (v > c ) ? -(v - c) : 0, 0 );
+			keepGoing = !t.done();
+
+			if ( keepGoing ) {
+				this._timerID = setTimeout( this._timerCB, this._timerInterval );
+			} else {
+				this._stopMScroll();
+			}
+			//console.log( "startmscroll" + this._rx + "," + this._sx );
+		},
+
+		_stopMScroll: function () {
+			if ( this._timerID ) {
+				this._$clip.trigger( this.options.stopEventName );
+				clearTimeout( this._timerID );
+			}
+
+			this._timerID = 0;
+
+			if ( this._tracker ) {
+				this._tracker.reset();
+			}
+			//console.log( "stopmscroll" + this._rx + "," + this._sx );
+		},
+
+		_handleMomentumScroll: function () {
+			var keepGoing = false,
+				v = this._$view,
+				x = 0,
+				y = 0,
+				t = this._tracker;
+
+			if ( t ) {
+				t.update();
+				x = t.getPosition();
+
+				keepGoing = !t.done();
+
+			}
+
+			this._setScrollPosition( x, y );
+			this._rx = x;
+
+			this._$clip.trigger( this.options.updateEventName, [ { x: x, y: y } ] );
+
+			if ( keepGoing ) {
+				this._timerID = setTimeout( this._timerCB, this._timerInterval );
+			} else {
+				this._stopMScroll();
+			}
+		},
+
+		_setItems: function () {
+			var i,
+				$item;
+
+			for ( i = -1; i < this._itemsPerView + 1; i++ ) {
+				$item = this._items[ circularNum( i, this._items.length ) ];
+				this._$list.append( $item );
+			}
+			setElementTransform( this._$view, this._sx + "px", 0 );
+			this._$view.width( this._itemWidth * ( this._itemsPerView + 2 ) );
+			this._viewWidth = this._$view.width();
+		},
+
+		_setScrollPosition: function ( x, y ) {
+			var sx = this._sx,
+				dx = x - sx,
+				di = parseInt( dx / this._itemWidth, 10 ),
+				i,
+				idx,
+				$item;
+
+			if ( di > 0 ) {
+				for ( i = 0; i < di; i++ ) {
+					this._$list.children().last().detach();
+					idx = -parseInt( ( sx / this._itemWidth ) + i + 3, 10 );
+					$item = this._items[ circularNum( idx, this._items.length ) ];
+					this._$list.prepend( $item );
+					//console.log( "di > 0 : " + idx );
+				}
+			} else if ( di < 0 ) {
+				for ( i = 0; i > di; i-- ) {
+					this._$list.children().first().detach();
+					idx = this._itemsPerView - parseInt( ( sx / this._itemWidth ) + i, 10 );
+					$item = this._items[ circularNum( idx, this._items.length ) ];
+					this._$list.append( $item );
+					//console.log( "di < 0 : " + idx );
+				}
+			}
+
+			this._sx += di * this._itemWidth;
+
+			setElementTransform( this._$view, ( x - this._sx - this._itemWidth ) + "px", 0 );
+
+			//console.log( "rx " + this._rx + "sx " + this._sx );
+		},
+
+		_enableTracking: function () {
+			$(document).bind( this._dragMoveEvt, this._dragMoveCB );
+			$(document).bind( this._dragStopEvt, this._dragStopCB );
+		},
+
+		_disableTracking: function () {
+			$(document).unbind( this._dragMoveEvt, this._dragMoveCB );
+			$(document).unbind( this._dragStopEvt, this._dragStopCB );
+		},
+
+		_getScrollHierarchy: function () {
+			var svh = [],
+				d;
+			this._$clip.parents( '.ui-scrollview-clip' ).each( function () {
+				d = $( this ).jqmData( 'circulaview' );
+				if ( d ) {
+					svh.unshift( d );
+				}
+			} );
+			return svh;
+		},
+
+		centerTo: function ( selector, duration ) {
+			var i,
+				newX;
+
+			for ( i = 0; i < this._items.length; i++ ) {
+				if ( $( this._items[i]).is( selector ) ) {
+					newX = -( i * this._itemWidth - this._clipWidth / 2 + this._itemWidth * 1.5 );
+					this.scrollTo( newX + this._itemWidth, 0 );
+					this.scrollTo( newX, 0, duration );
+					return;
+				}
+			}
+		},
+
+		scrollTo: function ( x, y, duration ) {
+			this._stopMScroll();
+			if ( !duration ) {
+				this._setScrollPosition( x, y );
+				this._rx = x;
+				return;
+			}
+
+			var self = this,
+				start = getCurrentTime(),
+				efunc = $.easing.easeOutQuad,
+				sx = this._rx,
+				sy = 0,
+				dx = x - sx,
+				dy = 0,
+				tfunc,
+				elapsed,
+				ec;
+
+			this._rx = x;
+
+			tfunc = function () {
+				elapsed = getCurrentTime() - start;
+				if ( elapsed >= duration ) {
+					self._timerID = 0;
+					self._setScrollPosition( x, y );
+					self._$clip.trigger("scrollend");
+				} else {
+					ec = efunc( elapsed / duration, elapsed, 0, 1, duration );
+					self._setScrollPosition( sx + ( dx * ec ), sy + ( dy * ec ) );
+					self._timerID = setTimeout( tfunc, self._timerInterval );
+				}
+			};
+
+			this._timerID = setTimeout( tfunc, this._timerInterval );
+		},
+
+		getScrollPosition: function () {
+			return { x: -this._rx, y: 0 };
+		},
+
+		_handleDragStart: function ( e, ex, ey ) {
+			$.each( this._getScrollHierarchy(), function ( i, sv ) {
+				sv._stopMScroll();
+			} );
+
+			this._stopMScroll();
+
+			if ( this.options.delayedClickEnabled ) {
+				this._$clickEle = $( e.target ).closest( this.options.delayedClickSelector );
+			}
+			this._lastX = ex;
+			this._lastY = ey;
+			this._speedX = 0;
+			this._speedY = 0;
+			this._didDrag = false;
+
+			this._lastMove = 0;
+			this._enableTracking();
+
+			this._ox = ex;
+			this._nx = this._rx;
+
+			if ( this.options.eventType == "mouse" || this.options.delayedClickEnabled ) {
+				e.preventDefault();
+			}
+			//console.log( "scrollstart" + this._rx + "," + this._sx );
+			e.stopPropagation();
+		},
+
+		_handleDragMove: function ( e, ex, ey ) {
+			this._lastMove = getCurrentTime();
+
+			var dx = ex - this._lastX,
+				dy = ey - this._lastY;
+
+			this._speedX = dx;
+			this._speedY = 0;
+
+			this._didDrag = true;
+
+			this._lastX = ex;
+			this._lastY = ey;
+
+			this._mx = ex - this._ox;
+
+			this._setScrollPosition( this._nx + this._mx, 0 );
+
+			//console.log( "scrollmove" + this._rx + "," + this._sx );
+			return false;
+		},
+
+		_handleDragStop: function ( e ) {
+			var l = this._lastMove,
+				t = getCurrentTime(),
+				doScroll = l && ( t - l ) <= this.options.moveIntervalThreshold,
+				sx = ( this._tracker && this._speedX && doScroll ) ? this._speedX : 0,
+				sy = 0;
+
+			this._rx = this._mx ? this._nx + this._mx : this._rx;
+
+			if ( sx ) {
+				this._startMScroll( sx, sy );
+			}
+
+			//console.log( "scrollstop" + this._rx + "," + this._sx );
+
+			this._disableTracking();
+
+			if ( !this._didDrag && this.options.delayedClickEnabled && this._$clickEle.length ) {
+				this._$clickEle
+					.trigger( "mousedown" )
+					.trigger( "mouseup" )
+					.trigger( "click" );
+			}
+
+			if ( this._didDrag ) {
+				e.preventDefault();
+				e.stopPropagation();
+			}
+
+			return this._didDrag ? false : undefined;
+		},
+
+		_addBehaviors: function () {
+			var self = this;
+
+			if ( this.options.eventType === "mouse" ) {
+				this._dragStartEvt = "mousedown";
+				this._dragStartCB = function ( e ) {
+					return self._handleDragStart( e, e.clientX, e.clientY );
+				};
+
+				this._dragMoveEvt = "mousemove";
+				this._dragMoveCB = function ( e ) {
+					return self._handleDragMove( e, e.clientX, e.clientY );
+				};
+
+				this._dragStopEvt = "mouseup";
+				this._dragStopCB = function ( e ) {
+					return self._handleDragStop( e );
+				};
+
+				this._$view.bind( "vclick", function (e) {
+					return !self._didDrag;
+				} );
+
+			} else { //touch
+				this._dragStartEvt = "touchstart";
+				this._dragStartCB = function ( e ) {
+					var t = e.originalEvent.targetTouches[0];
+					return self._handleDragStart(e, t.pageX, t.pageY );
+				};
+
+				this._dragMoveEvt = "touchmove";
+				this._dragMoveCB = function ( e ) {
+					var t = e.originalEvent.targetTouches[0];
+					return self._handleDragMove(e, t.pageX, t.pageY );
+				};
+
+				this._dragStopEvt = "touchend";
+				this._dragStopCB = function ( e ) {
+					return self._handleDragStop( e );
+				};
+			}
+			this._$view.bind( this._dragStartEvt, this._dragStartCB );
+		}
+	} );
+
+	$( document ).bind( "pagecreate create", function ( e ) {
+		$( $.mobile.circularview.prototype.options.initSelector, e.target ).circularview();
+	} );
+
+}( jQuery, window, document ) ); // End Component
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+} );
+//>>excludeEnd("jqmBuildExclude");