Commit 98d365b4 authored by techird's avatar techird

tag hot-fix as v1.1.3.1

parent 81bcb60f
...@@ -7,26 +7,26 @@ ...@@ -7,26 +7,26 @@
<meta name="description" content="百度脑图,便捷的脑图编辑工具。让您在线上直接创建、保存并分享你的思路。"> <meta name="description" content="百度脑图,便捷的脑图编辑工具。让您在线上直接创建、保存并分享你的思路。">
<script src="lib/jquery-2.1.0.min.js?_=1399893922286" charset="utf-8"></script> <script src="lib/jquery-2.1.0.min.js?_=1400151442820" charset="utf-8"></script>
<script src="lib/ZeroClipboard.min.js?_=1399893922286" charset="utf-8"></script> <script src="lib/ZeroClipboard.min.js?_=1400151442820" charset="utf-8"></script>
<script type="text/javascript"> <script type="text/javascript">
ZeroClipboard.setDefaults( { moviePath: 'lib/ZeroClipboard.swf' } ); ZeroClipboard.setDefaults( { moviePath: 'lib/ZeroClipboard.swf' } );
</script> </script>
<script src="lib/kitygraph.all.min.js?_=1399893922286" charset="utf-8"></script> <script src="lib/kitygraph.all.min.js?_=1400151442820" charset="utf-8"></script>
<script src="kityminder.all.min.js?_=1399893922286" charset="utf-8"></script> <script src="kityminder.all.min.js?_=1400151442820" charset="utf-8"></script>
<script src="kityminder.config.js?_=1399893922286" charset="utf-8"></script> <script src="kityminder.config.js?_=1400151442820" charset="utf-8"></script>
<script src="lang/zh-cn/zh-cn.js?_=1399893922286" charset="utf-8"></script> <script src="lang/zh-cn/zh-cn.js?_=1400151442820" charset="utf-8"></script>
<script src="lib/zip.js?_=1399893922286" charset="utf-8"></script> <script src="lib/zip.js?_=1400151442820" charset="utf-8"></script>
<script> <script>
zip.inflateJSPath = 'lib/inflate.js'; zip.inflateJSPath = 'lib/inflate.js';
</script> </script>
<script src="lib/jquery.xml2json.js?_=1399893922286" charset="utf-8"></script> <script src="lib/jquery.xml2json.js?_=1400151442820" charset="utf-8"></script>
<script src="lib/baidu-frontia-js-full-1.0.0.js?_=1399893922286" charset="utf-8"></script> <script src="lib/baidu-frontia-js-full-1.0.0.js?_=1400151442820" charset="utf-8"></script>
<script src="social/draftmanager.js?_=1399893922286" charset="utf-8"></script> <script src="social/draftmanager.js?_=1400151442820" charset="utf-8"></script>
<script src="social/social.js?_=1399893922286" charset="utf-8"></script> <script src="social/social.js?_=1400151442820" charset="utf-8"></script>
<link href="social/social.css" rel="stylesheet"> <link href="social/social.css" rel="stylesheet">
<link href="themes/default/css/import.css" type="text/css" rel="stylesheet" /> <link href="themes/default/css/import.css" type="text/css" rel="stylesheet" />
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</div> </div>
<p id="about"> <p id="about">
KityMinder <a id="km-version" href="https://github.com/fex-team/kityminder/blob/dev/CHANGELOG.md" target="blank"></a>, Powered by f-cube, <a href="http://fex.baidu.com" target="_blank">FEX</a> | KityMinder <a id="km-version" href="https://github.com/fex-team/kityminder/blob/dev/CHANGELOG.md" target="blank"></a> under <a href="https://raw.githubusercontent.com/fex-team/kityminder/dev/LICENSE" target="_blank">BSD License</a>. Powered by f-cube, <a href="http://fex.baidu.com" target="_blank">FEX</a> |
<a href="https://github.com/fex-team/kityminder.git" target="_blank">Source</a> <a href="https://github.com/fex-team/kityminder.git" target="_blank">Source</a>
<a href="https://github.com/fex-team/kityminder/issues/new" target="_blank">Bug</a> | <a href="https://github.com/fex-team/kityminder/issues/new" target="_blank">Bug</a> |
<a href="mailto:kity@baidu.com" target="_blank">Contact Us</a> <a href="mailto:kity@baidu.com" target="_blank">Contact Us</a>
......
/*! /*!
* ==================================================== * ====================================================
* kityminder - v1.1.3 - 2014-05-12 * kityminder - v1.1.3.1 - 2014-05-15
* https://github.com/fex-team/kityminder * https://github.com/fex-team/kityminder
* GitHub: https://github.com/fex-team/kityminder.git * GitHub: https://github.com/fex-team/kityminder.git
* Copyright (c) 2014 f-cube @ FEX; Licensed MIT * Copyright (c) 2014 f-cube @ FEX; Licensed MIT
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
(function(kity, window) { (function(kity, window) {
var KityMinder = window.KM = window.KityMinder = function () { var KityMinder = window.KM = window.KityMinder = function () {
var instanceMap = {}, instanceId = 0; var instanceMap = {},
instanceId = 0;
return { return {
version: '1.1.3', version: '1.1.3.1',
createMinder: function ( renderTarget, options ) { createMinder: function ( renderTarget, options ) {
options = options || {}; options = options || {};
options.renderTo = Utils.isString( renderTarget ) ? document.getElementById( renderTarget ) : renderTarget; options.renderTo = Utils.isString( renderTarget ) ? document.getElementById( renderTarget ) : renderTarget;
...@@ -5402,6 +5403,7 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -5402,6 +5403,7 @@ Minder.Receiver = kity.createClass( 'Receiver', {
this.range && this.range.nativeSel.removeAllRanges(); this.range && this.range.nativeSel.removeAllRanges();
this.index = 0; this.index = 0;
this.inputLength = 0; this.inputLength = 0;
this.isTypeText = false;
return this; return this;
}, },
setTextEditStatus: function ( status ) { setTextEditStatus: function ( status ) {
...@@ -5486,17 +5488,19 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -5486,17 +5488,19 @@ Minder.Receiver = kity.createClass( 'Receiver', {
if ( me.textShape.getOpacity() == 0 ) { if ( me.textShape.getOpacity() == 0 ) {
me.textShape.setOpacity( 1 ); me.textShape.setOpacity( 1 );
} }
//#46 修复在ff下定位到文字后方空格光标不移动问题 //#46 修复在ff下定位到文字后方空格光标不移动问题
if ( browser.gecko && /\s$/.test( text ) ) { if ( browser.gecko && /\s$/.test( text ) ) {
text += "\u200b"; text += "\u200b";
} }
me.textShape.setContent( text );
me.setContainerStyle();
me.minderNode.setText( text ); me.minderNode.setText( text );
if ( text.length == 0 ) { if ( text.length == 0 ) {
me.minderNode.setText( 'a' ); me.minderNode.setText( '|' );
} }
me.setContainerStyle();
me.km.updateLayout( me.minderNode ); me.km.updateLayout( me.minderNode );
...@@ -5514,29 +5518,27 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -5514,29 +5518,27 @@ Minder.Receiver = kity.createClass( 'Receiver', {
me.selection.setShow() me.selection.setShow()
}, 500 ); }, 500 );
} }
var isTypeText = false;
var isKeypress = false;
switch ( e.type ) { switch ( e.type ) {
case 'keydown': case 'keydown':
this.isTypeText = keyCode == 229 || keyCode === 0 ;
isTypeText = false; switch ( keyCode ) {
isKeypress = false; case keys.Enter:
switch ( e.originEvent.keyCode ) { case keys.Tab:
case keys.Enter: this.selection.setHide();
case keys.Tab: this.clear().setTextEditStatus( false );
this.selection.setHide(); this.km.fire( 'contentchange' );
this.clear().setTextEditStatus( false ); this.km.setStatus( 'normal' );
this.km.fire( 'contentchange' ); e.preventDefault();
this.km.setStatus( 'normal' ); return;
e.preventDefault(); break;
return; case keymap.Shift:
break; case keymap.Control:
case keymap.Shift: case keymap.Alt:
case keymap.Control: case keymap.Cmd:
case keymap.Alt: return;
case keymap.Cmd:
return;
} }
if ( e.originEvent.ctrlKey || e.originEvent.metaKey ) { if ( e.originEvent.ctrlKey || e.originEvent.metaKey ) {
...@@ -5550,54 +5552,53 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -5550,54 +5552,53 @@ Minder.Receiver = kity.createClass( 'Receiver', {
var index = me.container.textContent.indexOf( '$$_kityminder_bookmark_$$' ); var index = me.container.textContent.indexOf( '$$_kityminder_bookmark_$$' );
me.container.textContent = me.container.textContent.replace( '$$_kityminder_bookmark_$$', '' ); me.container.textContent = me.container.textContent.replace( '$$_kityminder_bookmark_$$', '' );
me.range.setStart( me.container.firstChild, index ).collapse( true ).select(); me.range.setStart( me.container.firstChild, index ).collapse( true ).select();
setTextToContainer() setTextToContainer();
}, 100 ); }, 100 );
} }
//剪切 //剪切
if ( keyCode == keymap.x ) { if ( keyCode == keymap.x ) {
setTimeout( function () { setTimeout( function () {
setTextToContainer() setTextToContainer();
}, 100 ); }, 100 );
} }
return; return;
} }
isTypeText = true;
setTextToContainer();
break;
case 'keypress': setTimeout(function(){
setTextToContainer();
if ( isTypeText ) });
// setTextToContainer();
isKeypress = true;
break; break;
case 'beforekeyup': case 'beforekeyup':
switch ( keyCode ) { switch ( keyCode ) {
case keymap.Enter: case keymap.Enter:
case keymap.Tab: case keymap.Tab:
case keymap.F2: case keymap.F2:
if ( this.keydownNode === this.minderNode ) { if(keymap.Enter == keyCode && (this.isTypeText || browser.mac && browser.gecko)){
this.rollbackStatus(); setTextToContainer();
this.setTextEditStatus( false ); }
this.clear(); if ( this.keydownNode === this.minderNode ) {
} this.rollbackStatus();
e.preventDefault(); this.setTextEditStatus( false );
return; this.clear();
}
e.preventDefault();
return;
case keymap.Del:
case keymap.Backspace:
case keymap.Spacebar:
setTextToContainer();
return;
} }
if ( !isKeypress ) { if(this.isTypeText){
setTextToContainer(); setTextToContainer();
} }
if(browser.mac && browser.gecko)
setTextToContainer();
return true; return true;
} }
}, },
updateIndex: function () { updateIndex: function () {
...@@ -5647,7 +5648,7 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -5647,7 +5648,7 @@ Minder.Receiver = kity.createClass( 'Receiver', {
}, },
setContainerStyle: function () { setContainerStyle: function () {
var textShapeBox = this.getBaseOffset( 'screen' ); var textShapeBox = this.getBaseOffset( 'screen' );
this.container.style.cssText = ";left:" + textShapeBox.x + 'px;top:' + ( textShapeBox.y - 5 ) + 'px;width:' + textShapeBox.width + 'px;height:' + textShapeBox.height + 'px;'; this.container.style.cssText = ";left:" + textShapeBox.x + 'px;top:' + ( textShapeBox.y + textShapeBox.height *.1 ) + 'px;width:' + textShapeBox.width + 'px;height:' + textShapeBox.height + 'px;';
if ( !this.selection.isShow() ) { if ( !this.selection.isShow() ) {
var paperContainer = this.km.getPaper(); var paperContainer = this.km.getPaper();
...@@ -6951,7 +6952,7 @@ KM.ui.define( 'dropmenu', { ...@@ -6951,7 +6952,7 @@ KM.ui.define( 'dropmenu', {
tmpl: '<ul class="kmui-dropdown-menu" aria-labelledby="dropdownMenu" >' + tmpl: '<ul class="kmui-dropdown-menu" aria-labelledby="dropdownMenu" >' +
'<%if(data && data.length){for(var i=0,ci;ci=data[i++];){%>' + '<%if(data && data.length){for(var i=0,ci;ci=data[i++];){%>' +
'<%if(ci.divider){%><li class="kmui-divider"></li><%}else{%>' + '<%if(ci.divider){%><li class="kmui-divider"></li><%}else{%>' +
'<li <%if(ci.active||ci.disabled){%>class="<%= ci.active|| \'\' %> <%=ci.disabled||\'\' %>" <%}%> data-value="<%= ci.value%>" data-label="<%= ci.label%>">' + '<li id="<%= ci.id%>" <%if(ci.active||ci.disabled){%>class="<%= ci.active|| \'\' %> <%=ci.disabled||\'\' %>" <%}%> data-value="<%= ci.value%>" data-label="<%= ci.label%>">' +
'<a href="#" tabindex="-1"><em class="kmui-dropmenu-checkbox"><i class="kmui-icon-ok"></i></em><%= ci.label%></a>' + '<a href="#" tabindex="-1"><em class="kmui-dropmenu-checkbox"><i class="kmui-icon-ok"></i></em><%= ci.label%></a>' +
'</li><%}}%>' + '</li><%}}%>' +
'<%}%>' + '<%}%>' +
...@@ -7054,12 +7055,13 @@ KM.ui.define( 'dropmenu', { ...@@ -7054,12 +7055,13 @@ KM.ui.define( 'dropmenu', {
}, },
appendItem: function ( item ) { appendItem: function ( item ) {
var itemTpl = '<%if(item.divider){%><li class="kmui-divider"></li><%}else{%>' + var itemTpl = '<%if(item.divider){%><li class="kmui-divider"></li><%}else{%>' +
'<li <%if(item.active||item.disabled){%>class="<%= item.active|| \'\' %> <%=item.disabled||\'\' %>" <%}%> data-value="<%= item.value%>" data-label="<%= item.label%>">' + '<li id="<%= item.id%>" <%if(item.active||item.disabled){%>class="<%= item.active|| \'\' %> <%=item.disabled||\'\' %>" <%}%> data-value="<%= item.value%>" data-label="<%= item.label%>">' +
'<a href="#" tabindex="-1"><em class="kmui-dropmenu-checkbox"><i class="kmui-icon-ok"></i></em><%= item.label%></a>' + '<a href="#" tabindex="-1"><em class="kmui-dropmenu-checkbox"><i class="kmui-icon-ok"></i></em><%= item.label%></a>' +
'</li><%}%>'; '</li><%}%>';
var html = $.parseTmpl( itemTpl, item ); var html = $.parseTmpl( itemTpl, item );
var $item = $( html ).click( item.click ); var $item = $( html ).click( item.click );
this.root().append( $item ); this.root().append( $item );
return $item;
}, },
addSubmenu: function ( label, menu, index ) { addSubmenu: function ( label, menu, index ) {
index = index || 0; index = index || 0;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -11,7 +11,7 @@ KityMinder.LANG[ 'zh-cn' ] = { ...@@ -11,7 +11,7 @@ KityMinder.LANG[ 'zh-cn' ] = {
'fontsize': '字号', 'fontsize': '字号',
'layoutstyle': '主题', 'layoutstyle': '主题',
'node': '节点操作', 'node': '节点操作',
'saveto': '导出', 'saveto': '另存为',
'hand': '允许拖拽', 'hand': '允许拖拽',
'zoom': '放大缩小', 'zoom': '放大缩小',
'markers': '添加标签', 'markers': '添加标签',
......
...@@ -99,7 +99,7 @@ $( function () { ...@@ -99,7 +99,7 @@ $( function () {
loadShare(); loadShare();
bindShortCuts(); bindShortCuts();
bindDraft(); bindDraft();
draftManager && watchChanges(); if ( draftManager ) watchChanges();
if ( draftManager && !loadPath() && !isShareLink ) loadDraft( 0 ); if ( draftManager && !loadPath() && !isShareLink ) loadDraft( 0 );
} }
...@@ -183,12 +183,6 @@ $( function () { ...@@ -183,12 +183,6 @@ $( function () {
} ); } );
} }
function initPreferneceSync() {
if ( currentAccount ) {
}
}
// 检查 URL 是否分享连接,是则加载分享内容 // 检查 URL 是否分享连接,是则加载分享内容
function loadShare() { function loadShare() {
...@@ -335,27 +329,45 @@ $( function () { ...@@ -335,27 +329,45 @@ $( function () {
// 加载用户最近使用的文件 // 加载用户最近使用的文件
function loadUserFiles() { function loadUserFiles() {
if ( loadUserFiles.tryCount ) {
console.warn( '加载用户最近使用的文件失败:第 ' + loadUserFiles.tryCount + '次' );
}
if ( loadUserFiles.tryCount > 3 ) {
notice( '加载最近脑图失败!' );
loadUserFiles.tryCount = 0;
}
var sto = baidu.frontia.personalStorage; var sto = baidu.frontia.personalStorage;
//$user_btn.loading( '加载最近脑图...' );
if ( loadUserFiles.tryCount === 0 ) {
loadUserFiles.$loadingMenuItem = $user_menu.appendItem( {
item: {
label: '正在加载最近脑图...',
disabled: 'disabled'
}
} );
}
sto.listFile( 'apps/kityminder/', { sto.listFile( 'apps/kityminder/', {
by: 'time', by: 'time',
success: function ( result ) { success: function ( result ) {
if ( result.list.length ) { if ( result.list.length ) {
//$user_btn.loading( false ); loadUserFiles.$loadingMenuItem.remove();
addToRecentMenu( result.list.filter( function ( file ) { addToRecentMenu( result.list.filter( function ( file ) {
return getFileFormat( file.path ) in fileLoader; return getFileFormat( file.path ) in fileLoader;
} ) ); } ) );
syncPreference( result.list ); syncPreference( result.list );
} }
}, },
error: function () { error: loadUserFiles
notice( '加载最近脑图失败!' );
//$user_btn.loading( false );
}
} ); } );
loadUserFiles.tryCount++;
} }
loadUserFiles.tryCount = 0;
// 同步用户配置文件 // 同步用户配置文件
function syncPreference( fileList ) { function syncPreference( fileList ) {
...@@ -460,6 +472,15 @@ $( function () { ...@@ -460,6 +472,15 @@ $( function () {
// 加载当前 remoteUrl 中制定的文件 // 加载当前 remoteUrl 中制定的文件
function loadRemote() { function loadRemote() {
if ( loadRemote.tryCount ) {
console.warn( '加载用户文件失败:第 ' + loadUserFiles.tryCount + '次' );
}
// 失败重试判断
if ( loadRemote.tryCount > 3 ) {
notice( '加载脑图失败!' );
loadRemote.tryCount = 0;
}
var sto = baidu.frontia.personalStorage; var sto = baidu.frontia.personalStorage;
$user_btn.loading( '加载“' + getFileName( remotePath ) + '”...' ); $user_btn.loading( '加载“' + getFileName( remotePath ) + '”...' );
...@@ -471,11 +492,16 @@ $( function () { ...@@ -471,11 +492,16 @@ $( function () {
if ( format in fileLoader ) { if ( format in fileLoader ) {
fileLoader[ format ]( url ); fileLoader[ format ]( url );
} }
loadRemote.tryCount = 0;
}, },
error: notice error: loadRemote
} ); } );
loadRemote.tryCount++;
} }
loadRemote.tryCount = 0;
function getFileFormat( fileUrl ) { function getFileFormat( fileUrl ) {
return fileUrl.split( '.' ).pop(); return fileUrl.split( '.' ).pop();
} }
...@@ -617,41 +643,60 @@ $( function () { ...@@ -617,41 +643,60 @@ $( function () {
} }
function save() { function save() {
if ( !currentAccount ) return; if ( !currentAccount || save.busy ) return;
save.busy = true;
var data = minder.exportData( 'json' ); var data = minder.exportData( 'json' );
var sto = baidu.frontia.personalStorage; var sto = baidu.frontia.personalStorage;
function error( reason ) { function error( reason ) {
notice( reason + '\n建议您将脑图以 .km 格式导出到本地!' ); notice( '保存到云盘失败,可能是网络问题导致!\n建议您将脑图以 .km 格式导出到本地!' );
$save_btn.loading( false ); $save_btn.loading( false );
clearTimeout( timeout ); clearTimeout( timeout );
save.busy = false;
} }
var timeout = setTimeout( function () { var timeout = setTimeout( function () {
error( '保存到云盘超时,可能是网络不稳定导致。' ); error( '保存到云盘超时,可能是网络不稳定导致。' );
}, 15000 ); }, 15000 );
sto.uploadTextFile( data, remotePath || generateRemotePath(), {
ondup: remotePath ? sto.constant.ONDUP_OVERWRITE : sto.constant.ONDUP_NEWCOPY, function upload() {
success: function ( savedFile ) { if ( upload.tryCount ) {
if ( savedFile.path ) { console.warn( '保存文件失败!(第 ' + upload.tryCount + ' 次)' );
if ( !remotePath ) {
addToRecentMenu( [ savedFile ] );
}
setRemotePath( savedFile.path, true );
if ( draftManager ) {
draftManager.save( remotePath );
draftManager.sync();
}
clearTimeout( timeout );
} else {
error( '保存到云盘失败,可能是网络问题导致!' );
}
},
error: function ( e ) {
error( '保存到云盘失败' );
} }
} ); if ( upload.tryCount > 3 ) {
error();
upload.tryCount = 0;
return;
}
sto.uploadTextFile( data, remotePath || generateRemotePath(), {
ondup: remotePath ? sto.constant.ONDUP_OVERWRITE : sto.constant.ONDUP_NEWCOPY,
success: function ( savedFile ) {
if ( savedFile.path ) {
if ( !remotePath ) {
addToRecentMenu( [ savedFile ] );
}
setRemotePath( savedFile.path, true );
if ( draftManager ) {
draftManager.save( remotePath );
draftManager.sync();
}
clearTimeout( timeout );
save.busy = false;
upload.tryCount = 0;
} else {
upload();
}
},
error: upload
} );
upload.tryCount++;
}
upload.tryCount = 0;
upload();
$save_btn.loading( '正在保存...' ); $save_btn.loading( '正在保存...' );
} }
...@@ -677,7 +722,7 @@ $( function () { ...@@ -677,7 +722,7 @@ $( function () {
$share_btn.loading( '正在分享...' ); $share_btn.loading( '正在分享...' );
$.ajax({ $.ajax( {
url: 'http://naotu.baidu.com/mongo.php', url: 'http://naotu.baidu.com/mongo.php',
type: 'POST', type: 'POST',
data: { data: {
...@@ -694,11 +739,11 @@ $( function () { ...@@ -694,11 +739,11 @@ $( function () {
notice( result.error ); notice( result.error );
} else { } else {
$share_dialog.show(); $share_dialog.show();
$share_url.val( shareUrl )[ 0 ].select(); $share_url.val( shareUrl )[ 0 ].select();
} }
}, },
error: function() { error: function () {
notice('分享失败,可能是当前的环境不支持该操作。'); notice( '分享失败,可能是当前的环境不支持该操作。' );
} }
} ); } );
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</div> </div>
<p id="about"> <p id="about">
KityMinder <a id="km-version" href="https://github.com/fex-team/kityminder/blob/dev/CHANGELOG.md" target="blank"></a>, Powered by f-cube, <a href="http://fex.baidu.com" target="_blank">FEX</a> | KityMinder <a id="km-version" href="https://github.com/fex-team/kityminder/blob/dev/CHANGELOG.md" target="blank"></a> under <a href="https://raw.githubusercontent.com/fex-team/kityminder/dev/LICENSE" target="_blank">BSD License</a>. Powered by f-cube, <a href="http://fex.baidu.com" target="_blank">FEX</a> |
<a href="https://github.com/fex-team/kityminder.git" target="_blank">Source</a> <a href="https://github.com/fex-team/kityminder.git" target="_blank">Source</a>
<a href="https://github.com/fex-team/kityminder/issues/new" target="_blank">Bug</a> | <a href="https://github.com/fex-team/kityminder/issues/new" target="_blank">Bug</a> |
<a href="mailto:kity@baidu.com" target="_blank">Contact Us</a> <a href="mailto:kity@baidu.com" target="_blank">Contact Us</a>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "kityminder", "name": "kityminder",
"title": "kityminder", "title": "kityminder",
"description": "Kity Minder", "description": "Kity Minder",
"version": "1.1.3", "version": "1.1.3.1",
"homepage": "https://github.com/fex-team/kityminder", "homepage": "https://github.com/fex-team/kityminder",
"author": { "author": {
"name": "f-cube @ FEX", "name": "f-cube @ FEX",
......
var KityMinder = window.KM = window.KityMinder = function () { var KityMinder = window.KM = window.KityMinder = function () {
var instanceMap = {}, instanceId = 0; var instanceMap = {},
instanceId = 0;
return { return {
version: '1.1.3', version: '1.1.3.1',
createMinder: function ( renderTarget, options ) { createMinder: function ( renderTarget, options ) {
options = options || {}; options = options || {};
options.renderTo = Utils.isString( renderTarget ) ? document.getElementById( renderTarget ) : renderTarget; options.renderTo = Utils.isString( renderTarget ) ? document.getElementById( renderTarget ) : renderTarget;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment