File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*! Licensed under MIT, https://github.com/sofish/pen */
2
- ; ( function ( root , doc ) {
2
+ ( function ( root , doc ) {
3
3
4
4
var Pen , debugMode , selection , utils = { } ;
5
5
var toString = Object . prototype . toString ;
342
342
}
343
343
344
344
function removeListener ( ctx , target , type , listener ) {
345
- var events = events = ctx . _events [ type ] ;
345
+ var events = ctx . _events [ type ] ;
346
346
if ( ! events ) {
347
347
var _index = ctx . _eventTargets . indexOf ( target ) ;
348
- if ( _index >= 0 ) events = ctx . _eventsCache [ _index ] [ type ]
348
+ if ( _index >= 0 ) events = ctx . _eventsCache [ _index ] [ type ] ;
349
349
}
350
350
if ( ! events ) return ctx ;
351
351
var index = events . indexOf ( listener ) ;
525
525
} ;
526
526
527
527
Pen . prototype . getContent = function ( ) {
528
- return trim ( this . config . editor . innerHTML ) ;
528
+ return this . isEmpty ( ) ? '' : trim ( this . config . editor . innerHTML ) ;
529
529
} ;
530
530
531
531
Pen . prototype . setContent = function ( html ) {
You can’t perform that action at this time.
0 commit comments