Commit 3aaaea79 authored by campaign's avatar campaign

去掉冗余的view.js

parent 441a03ad
KM.registerUI( 'preference',
function ( name ) {
var km = this;
//读取偏好设置,设置参数
}
);
\ No newline at end of file
KM.registerToolbarUI( 'hand zoom-in zoom-out expand contract',
function ( name ) {
var me = this;
var $btn = $.kmuibutton( {
icon: name,
click: function () {
console.log( name );
me.execCommand( name );
},
title: this.getLang( 'tooltips.' )[ name ] || ''
} );
me.on( 'interactchange', function () {
var state = me.queryCommandState( name );
$btn.kmui().disabled( state == -1 ).active( state == 1 );
} );
return $btn;
}
);
\ No newline at end of file
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