Changeset 24689
- Timestamp:
- 07/12/2013 08:51:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/revisions.js
r24686 r24689 13 13 14 14 revisions.log = function() { 15 if ( revisions.debug )15 if ( window.console && revisions.debug ) 16 16 console.log.apply( console, arguments ); 17 17 }; … … 343 343 this.set( properties ); 344 344 345 // Start the router 346 this.router = new revisions.Router({ model: this }); 347 Backbone.history.start({ pushState: true }); 345 // Start the router if browser supports History API 346 if ( window.history && window.history.pushState ) { 347 this.router = new revisions.Router({ model: this }); 348 Backbone.history.start({ pushState: true }); 349 } 348 350 }, 349 351
Note: See TracChangeset
for help on using the changeset viewer.