DIR : /home/kozerus/public_html/pn/uize/site-source/js/Uize/Build/Util/Whitespace.js
/home/kozerus/public_html/pn/uize/site-source/js/Uize/Build/Util
/*______________
| ______ | U I Z E J A V A S C R I P T F R A M E W O R K
| / / | ---------------------------------------------------
| / O / | MODULE : Uize.Build.Util.Whitespace Package
| / / / |
| / / / /| | ONLINE : http://www.uize.com
| /____/ /__/_| | COPYRIGHT : (c)2014-2016 UIZE
| /___ | LICENSE : Available under MIT License or GNU General Public License
|_______________| http://www.uize.com/license.html
*/
/* Module Meta Data
type: Package
importance: 1
codeCompleteness: 100
docCompleteness: 5
*/
/*?
Introduction
The =Uize.Build.Util.Whitespace= module provides a means for altering the line break and indent characters for files that contain normalized whitespace characters.
*DEVELOPERS:* `Chris van Rensburg`
*/
Uize.module ({
name:'Uize.Build.Util.Whitespace',
required:'Uize.Str.Lines',
builder:function () {
'use strict';
var
/*** Variables for Scruncher Optimization ***/
_Uize_Str_Lines = Uize.Str.Lines,
_undefined,
/*** Variables for Performance Optimization ***/
_switchIndentType = _Uize_Str_Lines.switchIndentType,
_switchLinebreakType = _Uize_Str_Lines.switchLinebreakType
;
return Uize.package ({
alterNormalizedWhitespace:function (_sourceStr,_whitespaceOptions) {
if (_whitespaceOptions) {
var
_indentChars = _whitespaceOptions.indentChars,
_linebreakChars = _whitespaceOptions.linebreakChars
;
if (_indentChars != _undefined && _indentChars != '\t')
_sourceStr = _switchIndentType (_sourceStr,'\t',_indentChars)
;
if (_linebreakChars != _undefined && _linebreakChars != '\n')
_sourceStr = _switchLinebreakType (_sourceStr,_linebreakChars)
;
}
return _sourceStr;
}
});
}
});
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer